Thread: Site Design 101
View Single Post
  #4 (permalink)  
Old Apr 26th, 2007, 12:07
karinne's Avatar
karinne karinne is offline
SuperMember

SuperMember
Join Date: Jan 2007
Location: You know where
Age: 31
Posts: 4,617
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Site Design 101

Quote:
Originally Posted by motlive View Post
More like using tables for layout, or should divs be used from now on?
You shuold always be coding your layout with CSS and DIV. Tables were never meant to be used to gel your layout together, they were meant for tabular data. See the link in my sig, it's also a sticky in some of the forums.

Quote:
Originally Posted by motlive View Post
like the code for this site, it has the <styles> outside of the head in some places, but that seems messy to me..
That's probably just because of the implication of a forum ... it's complicated stuff. I know the next version will be more semantic and valid tho Our admins are working on that.

The <style> element should belong in the <head> of the document and nowhere else

14.2.3 Header style information: the STYLE element
Quote:
The STYLE element allows authors to put style sheet rules in the head of the document. HTML permits any number of STYLE elements in the HEAD section of a document.
Quote:
Originally Posted by motlive View Post
is it just me being to uptight or should I just do whatever i want as long as it works?
Please .... be uptight! Start coding your pages the right way form the beginning and you can do wonderful thing. For example, if you code your page (the HTML) properly, then you can later on just change the CSS to give it a nice refresh. The CSS ZenGarden is a great example of that. Every style uses the exact same HTML, only a different stylesheet is loaded.
Reply With Quote