Click here to get back home

strange DOCTYPE problem..

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
strange DOCTYPE problem.. maya 03-16-2007
Get Chitika Premium
Posted by maya on March 16, 2007, 9:40 am
Please log in for more thread options


this is doctype I was told to use for a site I'm building at work..

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

only problem is, in IE the layout gets totally screwed up!
everything becomes centered, the divs containing nav buttons gets
compressed, and buttons show up one on top of the other (it's a
horizontal nav, buttons run across top of pages..)

in FF no problem at all..

site is done with css, pretty standard css code, nothing out of the
ordinary (I think....;)

can't provide url, site is still in development..

would appreciate some suggestions.. thank you...

Posted by Andy Dingley on March 16, 2007, 10:19 am
Please log in for more thread options


> this is doctype I was told to use for a site I'm building at work..
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">

Probably the wrong doctype to use. You should always use HTML 4.01
Strict, unless there's a good reason not to. There aren't many good
reasons.

This particular doctype declaration _should_ make CSS rendering behave
itself
See <http://hsivonen.iki.fi/doctype/>
but it's impossible to say for sure without a URL.

> only problem is, in IE the layout gets totally screwed up!

Smells like a quirks mode rendering problem.

> everything becomes centered, the divs containing nav buttons gets
> compressed, and buttons show up one on top of the other (it's a
> horizontal nav, buttons run across top of pages..)

That just sounds like broken code.

> site is done with css, pretty standard css code, nothing out of the
> ordinary (I think....;)

Have you validated both HTML and CSS ? (Let me guess!)
Have you validated both HTML and CSS _before_ asking any question to
c.i.w.a.*?


> can't provide url

Can't provide a solution


Posted by maya on March 16, 2007, 4:06 pm
Please log in for more thread options


Andy Dingley wrote:
>> this is doctype I was told to use for a site I'm building at work..
>>
>> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd">
>
> Probably the wrong doctype to use. You should always use HTML 4.01
> Strict, unless there's a good reason not to. There aren't many good
> reasons.
>
> This particular doctype declaration _should_ make CSS rendering behave
> itself
> See <http://hsivonen.iki.fi/doctype/>
> but it's impossible to say for sure without a URL.
>
>> only problem is, in IE the layout gets totally screwed up!
>
> Smells like a quirks mode rendering problem.
>
>> everything becomes centered, the divs containing nav buttons gets
>> compressed, and buttons show up one on top of the other (it's a
>> horizontal nav, buttons run across top of pages..)
>
> That just sounds like broken code.
>
>> site is done with css, pretty standard css code, nothing out of the
>> ordinary (I think....;)
>
> Have you validated both HTML and CSS ? (Let me guess!)
> Have you validated both HTML and CSS _before_ asking any question to
> c.i.w.a.*?
>
>
>> can't provide url
>
> Can't provide a solution
>

interesting.. I put this,

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

which I got from here, http://htmlhelp.com/tools/validator/doctype.html
(the top one..)

and problem goes away..

still don't fully get this doctype thing, but well, if this one works
will leave this one I guess..

thank you very much..


Posted by Rik on March 16, 2007, 10:26 am
Please log in for more thread options


> can't provide url, site is still in development..

Yes you can, just post a link to a quick static HTML document which
illustrates the behaviour. We won't mind the site isn't finished, the
content isn't there etc.

--
Rik Wasmus

Posted by maya on March 16, 2007, 4:00 pm
Please log in for more thread options


Rik wrote:
>> can't provide url, site is still in development..
>
> Yes you can, just post a link to a quick static HTML document which
> illustrates the behaviour. We won't mind the site isn't finished, the
> content isn't there etc.
>
> --Rik Wasmus

ok,here's url: http://www.mayacove.com/misc/page.html

(css validates..)

thank you..


Similar ThreadsPosted
help with strange problem February 27, 2006, 7:01 pm
Strange form problem October 21, 2004, 9:09 pm
Strange form problem October 21, 2004, 10:20 pm
Strange Problem with Sidebar and scripts in firefox February 10, 2005, 4:49 am
Problem with DOCTYPE line October 12, 2006, 8:36 pm
Strange IE bug... Help, please. June 10, 2005, 2:52 pm
Strange! May 15, 2006, 10:47 pm
Strange rendering? December 10, 2004, 10:54 am
Very strange error effect with March 13, 2005, 8:50 pm
strange behavior with IE and margin... June 12, 2006, 2:03 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap