Posted: Thu Nov 13, 2008 2:00 pm Website Graphics look different on Firefox vs. IE
I have a website and if you view the home page which is www.insurancestaffing.net , the graphics on the home page look awful in Firefox and don't line up, but in Internet Explorer they look fine. How can I fix this problem in the code so it looks the same in Firefox as it does in IE? Thanks for any help.
Because you have no doctype for each browser to reference to, the pages are being rendered in quirks mode. Put one of these as the first line of code on each page
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
or
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
There is maybe a 1or 2px difference in the vertical spacing of the images which may be fixed with the complete doctype. If a browser is getting it wrong it will be IE.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum