Forum : div alignment
Brief description  about Online courses   join in Online courses
View Arpitha H Gowda 's Profile

div alignment

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?
Asked by Arpitha H Gowda | Aug 28, 2009 |  Reply now
Replies (5)
View bikash kumar singh 's Profile
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
Sep 3, 2009
View arpitha h gowda 's Profile
ok.. thank you..:)
Sep 2, 2009
View navneet khanna 's Profile
I opted mozilla and even tested with IE. Some difference was there, but it was okay.

Regards
Sep 1, 2009
View arpitha h gowda 's Profile
ok.. thanks a lot.. but while doing assignments, which browser to opt? mozilla or ie?
Aug 31, 2009
View navneet khanna 's Profile
Hi Arpitha

It is happening because of browser difference. It happens, thats why practically we make different webpages for different browsers.
you will check the browser in which we are opening the webpage and based on that we can open the webpage. You will cover this in Javascript.

Regards
Aug 31, 2009