I have a question that is consuming me a lot of time, following:
I need to center the counter of the image below, but it needs to be at the bottom of the screen (with position:absolute
) and div
of it has variable size.
Ifmydiv
hadafixedsize,Icoulduseitquietlymargin:0auto;
Butbesidesbeingvariable,itiswithposition:absolute;
andwithbottom:0;
,itfollowscompletecode:
#clock{position:absolute;bottom:0;margin:0auto;}
Seehowyou'redoing:
Any suggestions?