On 8/7/10 2:44 AM, Ido dekkers wrote: > don't know if this relates entirely to this list, but 2 layout > questions for client side developers: > > I'm building a 2 column layout design, on the left will be the > navigation and on the right the content. the 2 questions are: 1. do i > put the content area first in HTML and place it after in the CSS or > do i leave it second in the flow of HTML? > > 2. which HTML5 element is the correct one to use for the left side > containing the menu? should i use<nav> even thought the site logo > (which is a link also) and the facebook/twitter/etc. links are also > there? or do i use a different element and put the nav in it? > > again - i know it's not strictly CSS but it is layout related and i > would be glad to hear your opinion. >
Leaving aside the HTML5 question, I'd say: 1. Put the content first 2. Float it right with a (percent?) width 3. Add a "hasLayout" trigger[1] and a New Block-formatting Context[2] to the navigation The theory and practical examples: http://www.ez-css.org/ [1] http://www.satzansatz.de/cssd/onhavinglayout.html [2] http://reference.sitepoint.com/css/blockformatting Cordially, David -- ______________________________________________________________________ css-discuss [cs...@lists.css-discuss.org] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/