rpk2006 — 2011-09-09T10:48:15-04:00 — #1
I have two Div sections as below:
<div id="divMain" style="top:40px">
<div id="divFooter" style="top:550px">
If I use- position:absolute for both Divs, they render well on IE, but on firefox, the footer Div renders on the base-line of the Main div.
Even if I use Top, the pixel difference between two browsers disturbs rendering.
Is there any way to render the Divs same in both browsers?
c_ankerstjerne — 2011-09-09T13:11:50-04:00 — #2
That's default behaviour for a
div, so you don't need any styling at all, unless you have specified all
divs to have margins elsewhere.
rpk2006 — 2011-09-09T10:55:08-04:00 — #3
I want to display both Divs just one below the other. I have given the code, what else example you want?
donboe — 2011-09-09T10:51:38-04:00 — #4
Hi for a starter is it not a good idea to use inline styles. Can you give an example of what you would like to reach? I would never use an absolute divs there are different ways to have those div's line up correctly.