Welcome to WebmasterWorld Guest from 23.20.193.33

Forum Moderators: open

Message Too Old, No Replies

CSS and XHTML?

Mozilla messes up

     
10:28 pm on Sep 18, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 17, 2004
posts:1354
votes: 0


Strange...

As soon as I pass the correct mime-type to mozilla, my XHTML-page will render completely messed up. It looks like the DIV's are ignored?

My CSS file is lower-case and conforms to W3C standards. What could be wrong?

12:16 am on Sept 19, 2004 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9074
votes: 6


Are you adding styles via the
body
element? This is one of the major issues to deal with when styling for
application/xhtml+xml
- without going into the excruciating details, because you're dealing with XML rather than HTML,
body
doesn't have the same importance - it's just a tag like any other.

Without seeing your CSS, I can't be very specific about advice, but try moving styles up to the

html
element instead of
body
and see if that makes a difference.
9:30 pm on Sept 19, 2004 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Aug 17, 2004
posts:1354
votes: 0


Wow, are you a psychic or something? Awesome piece of bit-reading ;)

Moving the id to HTML doesn't make a difference though...

11:28 pm on Sept 19, 2004 (gmt 0)

Senior Member from CA 

WebmasterWorld Senior Member encyclo is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Aug 31, 2003
posts:9074
votes: 6


Unfortunately, johnnie, my psychic powers aren't strong enough to debug your page without a snippet of relevant markup. ;)

Can you reduce the problem down to a simplified example that you'd be able to post here (both CSS and XHTML)? When you say "messed up", in what way? Is it margins, floating, inherited styles?

 

Join The Conversation

Moderators and Top Contributors

Hot Threads This Week

Featured Threads

Free SEO Tools

Hire Expert Members