HighDots Forums  

Re: Please Critique: doctype, css problems

Websites/HTML pages critique & reviews Discuss and review existing WWW material (alt.html.critique)


Discuss Re: Please Critique: doctype, css problems in the Websites/HTML pages critique & reviews forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jim Moe
 
Posts: n/a

Default Re: Please Critique: doctype, css problems - 07-29-2005 , 02:22 AM






CircleSky wrote:
Quote:
The problem I'm having is that when I add the doctype to the beginning
of the htm file, the formatting doesn't display as expected. (I
recognize that the browser is now using Standards mode.) An example of
the page with doctype declaration:
http://www.luckyman.ca/testsite/index.htm
Notice:
- the boxes surrounding the title are only as wide as the text itself,
even though "span.h1 {width:100%;} ".
<span> applies to inline elements only. So the width attribute is
meaningless.
If you want an <h1> element, use <h1>. It is a block element and
automatically widens to 100%. Change its attributes rather than try to
recreate it (incorrectly). As a bonus search engines like <h1>.

Quote:
- the background image in div.nav is cropped at the bottom.
- the navigation buttons are wider.
- the position of div.nav scrolls off the screen.

Other have commented on these issues.
One thing: the div.nav width plus div.body width exceeds 100% (27 +
74.5 = 101.5).
Look into using the "cascading" aspect of CSS. It can greatly reduce
your HTML markup.

Quote:
My question is, if the files are valid as the W3C validator indicates,
why are all my css settings not rendered as expected while in standards
mode? To word this a different way: The validator indicates that I'm
using standard code. Why is it only rendered correctly in Quirks mode?

Validation verifies "syntax", that your code complies with the rules of
the DTD. It has nothing to do with correct coding.


--
jmm dash list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.