473,395 Members | 1,762 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

strange DOCTYPE problem..

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...
Mar 16 '07 #1
8 2923
On 16 Mar, 13:40, maya <maya778...@yahoo.comwrote:
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

Mar 16 '07 #2
Rik
maya <ma********@yahoo.comwrote:
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
Mar 16 '07 #3
Rik wrote:
maya <ma********@yahoo.comwrote:
>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..

Mar 16 '07 #4
Andy Dingley wrote:
On 16 Mar, 13:40, maya <maya778...@yahoo.comwrote:
>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..

Mar 16 '07 #5
Rik
On Fri, 16 Mar 2007 21:00:19 +0100, maya <ma********@yahoo.comwrote:
Rik wrote:
>maya <ma********@yahoo.comwrote:
>>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..)
Could you also validate & fix the HTML errors?
--
Rik Wasmus
Mar 16 '07 #6
maya wrote:
>
http://www.mayacove.com/misc/page.html
Mixing HTML style attributes with CSS is asking for trouble. Get rid of
all those align attributes, for starters. Then validate the HTML and go
from there.

--
Berg
Mar 17 '07 #7
On 17 Mar, 16:26, Bergamot <berga...@visi.comwrote:
Mixing HTML style attributes with CSS is asking for trouble.
I think you mean "HTML 3.2 presentational attributes". Mixing these
with CSS is indeed asking for trouble.

Adding CSS through a HTML 4 style attribute is much more
straightforward.

Mar 19 '07 #8
Andy Dingley wrote:
On 17 Mar, 16:26, Bergamot <berga...@visi.comwrote:
>Mixing HTML style attributes with CSS is asking for trouble.

I think you mean "HTML 3.2 presentational attributes".
Yes, that is indeed what I meant. I forget that "style" is an attribute,
probably because I rarely use it. It can make for messy code, too.

--
Berg
Mar 19 '07 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: Stephen Melia | last post by:
Hello, I've just done a redesign of website, and it's gone terribly wrong for Internet Explorer 6. I have a two column layout, and for some reason links in the right hand column cannot be...
6
by: Patrick | last post by:
Hi I am fairly new to CSS and the web.I am trying to build a site more to practice my skills than for the site itself. I have been focusing on CSS and try my best to make it work in I.E 6.0,...
12
by: Robert Misiorowski | last post by:
Hello, I have a very perplexing (at least to me) problem that hopefully someone can help me with. I'm making a site with a 3 column layout. In the middle column (my fluid column) I am trying to...
8
by: Raoul Borges | last post by:
Hi! I have a simple IF/ELSE IF/ELSE block, and it won't work as I hoped: K_IMG_RED(), K_IMG_BLUE() are function that returns either 1 or 2 (the numbers). I use them as constants. ...
1
by: Mike the Canadian | last post by:
I am having a strange problem with field verification in a form. The JavaScript below works just fine in Firefox but in IE. "license" is a pull-down list and "requiredDiscount" is a text field....
7
by: M O J O | last post by:
Hi, I'm developing a asp.net application and ran into a strange css problem. I want all my links to have a dashed underline and when they are hovered, it must change to a solid line. Sounds...
0
by: the friendly display name | last post by:
Hi, I have a filled multiline textbox on the site. I can scroll it with IE and Firefox, but under Opera (tested under 7.54, and Opera 8, under "identify as MSIE" and under Opera identification)...
11
by: Dagwood Bumstead | last post by:
I play around with js a little... I just don't get this. The file below is just trying out some things... it does exactly what I want (hides/displays some things, no big deal) The problem is...
0
by: jceddy | last post by:
Hi...I hope I am posting this in an appropriate place...if not, could some direct me to someplace better? Anyway, the problem I have is that I have a page with a table with two rows. The top...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.