HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Website Graphics look different on Firefox vs. IE
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML
View previous topic :: View next topic  
Author Message
brucekm



Joined: 13 Nov 2008
Posts: 2

PostPosted: Thu Nov 13, 2008 2:00 pm     Website Graphics look different on Firefox vs. IE Reply with quote

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.
sticks464



Joined: 31 Dec 2006
Posts: 1284

PostPosted: Thu Nov 13, 2008 2:30 pm     Reply with quote

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">


It looks the same to me in FF3 and IE7.
brucekm



Joined: 13 Nov 2008
Posts: 2

PostPosted: Thu Nov 13, 2008 2:56 pm     Reply with quote

You say it looks the same, but the graphics on the home page do not line up properly. Do you see what I mean. Thanks for the reply btw.
sticks464



Joined: 31 Dec 2006
Posts: 1284

PostPosted: Thu Nov 13, 2008 3:08 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> General HTML All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial