Page 1 of 1

firefox display problem

Posted: Tue Sep 28, 2010 5:54 am
by rjhe22
hi
im using css in php and its looks fine in IE but not in firefox how can i get it to look the same in firefox
here is my code

Code: Select all

body {	
	background-color: #f1f1f1;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	line-height: normal;
	font-weight: normal;
	color: #666666;
	text-decoration: none;
	margin-top:100px;
	margin-left: 220px;
	
}
its the margin top and margin left part that does not look right in firefox

Re: firefox display problem

Posted: Wed Sep 29, 2010 10:25 am
by Reviresco
Try adding: padding: 0;

If that doesn't work -- what is it that's different between IE and Firefox?

Re: firefox display problem

Posted: Wed Sep 29, 2010 2:24 pm
by califdon
It's IE that's nonstandard, not FF. The web is filled with articles describing this difference. Read
http://www.456bereastreet.com/archive/2 ... box_model/
http://geekswithblogs.net/mnf/archive/2 ... cript.aspx
etc. etc. etc.