Margins problem

sambitha's picture

They have: 3 posts

Joined: Apr 2009

Hey , I've been into web design for abt 2 months ... and i've been having this annoying problem .. whenever I wanna define margins for any " <div " ... every browser shows it differently .... I only got internet explorer 7 to show it the way i want .. other browsers like Firefox .. Safari .. Google Chrome. .. show it in a wrong way ... can someone please tell me why ?

Megan's picture

She has: 11,421 posts

Joined: Jun 1999

Looks like you didn't finish your question.

If you have a question about a particular display problem it's helpful to provide a link to your page so we can see exactly what's going on.

decibel.places's picture

He has: 1,494 posts

Joined: Jun 2008

@Megan

no, sambitha used <div and did not put in code tags - I suggested that you check the submissions for code and add (or prompt for) code tags if they are missing... although it is not even a full tag, the html filter removed it and all the following text because it was not closed

sambitha wrote:
Hey , I've been into web design for abt 2 months ... and i've been having this annoying problem .. whenever I wanna define margins for any " <div " ... every browser shows it differently .... I only got internet explorer 7 to show it the way i want .. other browsers like Firefox .. Safari .. Google Chrome. .. show it in a wrong way ... can someone please tell me why ?

@sambitha

every browser has its own DOM defaults for displaying html. You can override them with css.

if you can post some code (remember to use the code tool 3rd icon from right) or a link we can possibly be more helpful

greg's picture

He has: 1,581 posts

Joined: Nov 2005

[Post fixed - any time a tag is opened, regardless of if it's closed or not, the forum code tags need to be applied - Third icon from the right in the post tools]

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.