Welcome to WebmasterWorld Guest from 54.226.241.8

Forum Moderators: httpwebwitch

Message Too Old, No Replies

CSS and XHTML?

Mozilla messes up

     

johnnie

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

WebmasterWorld Senior Member 10+ Year Member



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?

encyclo

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

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



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.

johnnie

9:30 pm on Sep 19, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



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

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

encyclo

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

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



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?

 

Featured Threads

Hot Threads This Week

Hot Threads This Month