why so different in FF and IE

Joined
12 Feb 2006
Posts
17,427
Location
Surrey
trying to add a margin to the left of a div but the blooming either IE or FF is being silly and the differnce so some odd reason is huge.

here is the code i have for the div

Code:
div#welcome2 {
	width: 290px;
	margin: 10px 0px 0px 65px;
	float: left;
}

Now in FF it loaded all fine in position, as far as i was aware 65px margin from the left. but in IE its doulbe the distance. any reason why it does this? not the first time i have had this problem and im lost as to why it does 130px instead of 65px
 
Pr0t0c0L said:
also note that using underscores means IE browsers only process the line like this

_padding:10px

firefox will ignore it, where as IE will render it

once again, thankyou very much. God knows where i would be now without OCuK forums. I know for sure this will come in very handy
 
Back
Top Bottom