homepage Welcome to WebmasterWorld Guest from 54.196.206.80
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / Code, Content, and Presentation / XML Development
Forum Library, Charter, Moderators: httpwebwitch

XML Development Forum

    
CSS and XHTML?
Mozilla messes up
johnnie




msg:702100
 10:28 pm on Sep 18, 2004 (gmt 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?

 

encyclo




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

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




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

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

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

encyclo




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

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?

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / XML Development
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved