firefox display problem

HTML, CSS and anything else that deals with client side capabilities.

Moderator: General Moderators

Post Reply
rjhe22
Forum Newbie
Posts: 9
Joined: Fri Sep 24, 2010 9:57 am

firefox display problem

Post 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
Last edited by pickle on Tue Sep 28, 2010 9:40 am, edited 1 time in total.
Reason: Changed syntax highlighting to CSS
Reviresco
Forum Contributor
Posts: 172
Joined: Tue Feb 19, 2008 4:18 pm
Location: Milwaukee

Re: firefox display problem

Post by Reviresco »

Try adding: padding: 0;

If that doesn't work -- what is it that's different between IE and Firefox?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: firefox display problem

Post 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.
Post Reply