Forum Moderators: open

Message Too Old, No Replies

XHTML and CSS

trying to resolve a problem with CSS in an XHTML document

         

dizzy1234

2:11 am on Apr 1, 2005 (gmt 0)



Hi there,

I'm having a problem with an XML document created by WordPress.

I'm trying to create an in-page popup, using DHTML. I initially programmed the thing in plain old HTML and got it working fine, but when I inserted the code into the document I couldn't persuade it to work. After some tinkering I discovered that removing the DOCTYPE header (describing it as XHTML) made it work. I have two versions here:

<snip>

Open the popup by clicking the "Submission guidelines here" link at the bottom of the right hand side.

I figure that it's something to do with the css attributes I've given to the popup div working differently in XHTML

[edited by: engine at 9:57 am (utc) on April 1, 2005]
[edit reason] No urls, thanks. See TOS [webmasterworld.com] [/edit]

mrMister

3:01 am on Apr 5, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why not just declare your page as HTML4 if that works?