views:

73

answers:

1

I want to design a site with header, navigation part and content... for SEO purposes I want the coding in the order of content, header and navigation area... but when viewing the site we want to see header first then navigation area then content... is there any way doing this ?

+2  A: 

Absolute positioning. This poses a bunch of other issues involving fixed heights, but gives you and idea of where to go. Also, agree with comments, this is not a good approach and may even lie on the edge of "black hat" SEO techniques.

<div id="Container">
    <div id="Content"><div>
    <div id="Header"><div>
    <div id="Navigation"><div>
<div>

#Container
{
    position: relative;
}
#Content
{
    position: absolute;
    top: 300px;
}
#Header
{
    position: absolute;
    height: 200px;
    top: 0px;
}
#Navigation
{
    position: absolute;
    height: 100px;
    top: 200px;
}
Dustin Laine
I doubt that it would be classed as a black hat technique as there's merit in organising a page that way for accessibility reasons. Getting a screen reader to the page content as quickly as possible is much better than subjecting the user to an interminable list of links that they're not interested in. Likewise, users who have to use puff-and-sip navigation do not want to have to step through all the menu links to get to the main page content.
Alohci