jlizarraga
12-02-2008, 10:45 PM
Hi all,
So our SEO guy came back from Pubcon with a lot of valuable SEO rules, one of which being to put your content at the top of the markup and your header/nav/etc at the bottom of your markup, then use CSS to position them back to the correct order.
The problem is, we have paragraphs of SEO text on our pages that are dynamically generated and have different heights with every page load. Couple this with a page where the main content's height is also dynamic/variable, and my brain freezes up.
A simple example:
Markup without SEO optimization:
<div id="container">
<div id="nav">Nav</div>
<div id="content">
<div id="pageContent">
[dynamically generated page content]
</div>
<div id="seo">
[dynamically generated seo content]
</div>
</div>
</div>
Markup with SEO optimization:
<div id="container">
<div id="content">
<div id="seo">
[dynamically generated seo content]
</div>
<div id="pageContent">
[dynamically generated page content]
</div>
</div>
<div id="nav">Nav</div>
</div>
Is it possible (with just friendly CSS, no JS or expressions) to correctly position these elements back to their non-optimized order when two or more of them have variable heights like that?
I'm stumped. :confused:
Any tips greatly appreciated!
So our SEO guy came back from Pubcon with a lot of valuable SEO rules, one of which being to put your content at the top of the markup and your header/nav/etc at the bottom of your markup, then use CSS to position them back to the correct order.
The problem is, we have paragraphs of SEO text on our pages that are dynamically generated and have different heights with every page load. Couple this with a page where the main content's height is also dynamic/variable, and my brain freezes up.
A simple example:
Markup without SEO optimization:
<div id="container">
<div id="nav">Nav</div>
<div id="content">
<div id="pageContent">
[dynamically generated page content]
</div>
<div id="seo">
[dynamically generated seo content]
</div>
</div>
</div>
Markup with SEO optimization:
<div id="container">
<div id="content">
<div id="seo">
[dynamically generated seo content]
</div>
<div id="pageContent">
[dynamically generated page content]
</div>
</div>
<div id="nav">Nav</div>
</div>
Is it possible (with just friendly CSS, no JS or expressions) to correctly position these elements back to their non-optimized order when two or more of them have variable heights like that?
I'm stumped. :confused:
Any tips greatly appreciated!