div alignment
By Arpitha H Gowda
sir,
while using div, when i put two div's and open with mozilla, i notice that those both block get overlapped or come one below the other..
where as when i open with ie, they align next to each other horizontally...
y is it so sir?
n how to align horizontally in Mozilla also sir?
Bikash Kumar Singh replied to Arpitha H Gowda Thursday, September 03, 2009
This happens because some browsers adds margins, paddings on thier own with the width propery which makes the total width more than what you might be thinking and hense overlaps and breaks. For example even if you dont specify padding with UL tag IE will take it automatically but FF wont. You can just play around with margins and paddings and see if things improve. Read the CSS box model from W3schools.com, you will understand the underlying concept. ALL THE BEST