CSS Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignCSS Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old February 25th, 2004, 09:02 AM
gafffe gafffe is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Location: Exeter UK / Las Palmas Spain
Posts: 8 gafffe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 24 m 33 sec
Reputation Power: 0
Question Simple CSS & xHTML cross-browser problem

I'm working on a little project here, trying to design a table-less page using XHTML and style sheets.

The first version worked only in IE, Mozilla and Opera didn't display them the way I wanted to. So I rebuilt the stylesheet from scratch with cross-browser compatibility in mind and it sort of works in all three browsers, except for one little bit:

http://gosh.ex.ac.uk/~cs01kb/lg_sample/

Stylesheet: http://gosh.ex.ac.uk/~cs01kb/lg_sample/css/main.css

IE6 and Opera 7 correctly display the little bar at the bottom with all the links, but Mozilla Firefox 0.8 doesn't - it displays it under the two main content boxes. I'm just out of ideas on how to try and make it work, it should be so simple.

Any help on how to get around it would be appreciated.

P.S.: If you're using any other browser out there (especially on a Mac) just a quick note or a screenie of what the page looks like would be nice... thanks!

Reply With Quote
  #2  
Old February 26th, 2004, 12:16 AM
kk5st's Avatar
kk5st kk5st is offline
Thanks Johnny Hart (BC) R.I.P.
Dev Shed Demi-God (4500 - 4999 posts)
 
Join Date: May 2003
Location: Dallas
Posts: 4,585 kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level)kk5st User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 2 Days 16 h 15 m 44 sec
Reputation Power: 662
There are two problems. First, the </xml… tag puts IE6 into quirks mode. Not sure, but Opera, if IDing as IE may emulate IE and go into quirks mode itself. If contributor akh sees this, he may be able to confirm or belie this. Instead of the xml prolog, use a meta statement <meta http-equiv="content-type" content="text/html;charset=ISO-8859-1" />. Quirks mode may explain why IE and Opera improperly display the page—that's right, Mozilla/Firefox nee Firebird got it right.

Why is Moz right? You've used floats for your main content, within a container. A float does not take up any real estate, so the container div does not expand. IE improperly expands the containing div (a major goof). The link bar and copyright lines are immediately below the container div which is far short of clearing the floats.

The following should fix you up:
Code:
<p class="copy" style="clear: both;">© Company 2004</p>
You just need to clear the floats.

cheers,

gary
__________________
There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

My html and css workshop, demos and tutorials.
Ask a better question, get a better answer.

Last edited by kk5st : February 26th, 2004 at 12:22 AM. Reason: formatting

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignCSS Help > Simple CSS & xHTML cross-browser problem


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway
Stay green...Green IT