Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
CSS/Div Issues with IE and Firefox
Old 09-04-2007, 01:32 PM CSS/Div Issues with IE and Firefox
Junior Talker

Posts: 2
Trades: 0
The website I'm referring to is this: http://www.freewebs.com/kaelink/IHRF/
In Firefox, it shows up exactly as I had planned, but in IE, it looks horrible...
I was wondering if someone could find the flaw in the code (because I'm not great with CSS/Div, which is painfully obvious). I want this site to look the same (more or less), regardless of the user's browser.

Thanks!
Kae

An image demonstrating the problem can be found at: http://www.freewebs.com/kaelink/IHRF/Problem.gif
Kaelink is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 09-04-2007, 03:18 PM Re: CSS/Div Issues with IE and Firefox
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
FIRST - put a proper DOCTYPE on your page, that will ensure that you get more consistent results on all browsers, though IE6 will still need a few other kicks to make it behave.

Second - get rid of the tables for layout, you don't need them and they are soo 1997. Your layout can be achieved completely without tables and w/o too much effort.

Third, put your text inside <p></p> tags as they are supposed to be.

Get rid of things like <div align="center"> and properly use CSS to center the div. Also get rid of the background colors and such you have crammed into the <body> tag and put all that presentational markup into the CSS , where it's supposed to be.

In your CSS, define a default typeface and size - FF is displaying it in TimesNewRoman whereas IE6 is showing it in what appears to be Arial or Verdana.
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 09-04-2007, 03:57 PM Re: CSS/Div Issues with IE and Firefox
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
Here is a great reference
http://www.w3schools.com/tags/tag_doctype.asp

I agree with LadynRed.

There a lot of div's and they are contained within a table. I noticed towards the top there were 4 closing </div> tags and I could count only 3 opening <div>'s.

The layout is neater and easier to keep up with using CSS. With the tables and div's it's hard to see what is going on without reproducing the site and rewriting it.
joder is offline
Reply With Quote
View Public Profile
 
Old 09-04-2007, 05:28 PM Re: CSS/Div Issues with IE and Firefox
Junior Talker

Posts: 2
Trades: 0
Thanks guys.
I'm not sure if it's actually any better, but the problem is, at the very least resolved.
Joder, thanks for the reference.
LadynRed, thanks for what was essentially a checklist for me to go by.

Like I said, it may not be properly designed, and probably still not the most efficient thing ever, but it looks like the "problem" is fixed.

Thanks guys.
http://www.freewebs.com/kaelink/IHRF/index2.html (Updated version)

Oh, and any further advice is greatly appreciated.
Kaelink is offline
Reply With Quote
View Public Profile
 
Old 09-04-2007, 05:47 PM Re: CSS/Div Issues with IE and Firefox
joder's Avatar
Flipotron

Posts: 6,442
Name: James
Location: In the ocean.
Trades: 0
I'm glad it's working for you. You may want to play with adding padding to your css classes. That will add space around the font and help with learning more about CSS
joder is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS/Div Issues with IE and Firefox
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.65903 seconds with 12 queries