Reply to comment

HTML CSS 3-column Layout with Content Above the Navigation

I was toying with some SEO ideas, and wanted a CSS-based layout that puts the content at the top.

After doing so much PITA CSS for a year ror two, and then not doing it for a couple years, it suddenly got really easy to make this layout. Maybe the CSS concepts just take time to sink in. It seemed to make more sense as I forgot the language.

Attached is a 3 column layout with two nav bars, a sidebar column, a footer, and a header. The content is right at the top, and all the navigation is between the content and the footer. The layout is fixed, not liquid, because liquid and wide-screen don't mix.

The code is a skeleton, not a functioning layout with all the elements in place. There's no CSS to turn lists into links, for example.

CSS Tricks has more information and a couple tricks to make this kind of layout work.

AttachmentSize
index.php.txt1.17 KB

Reply

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <b> <dd> <dl> <dt> <i> <li> <ol> <u> <ul> <p> <br> <div> <pre> <code> <img><h1><h2><h3><h4> <blockquote>
  • Lines and paragraphs break automatically.
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

.