Forums / Templates, Stylesheets, Page Layout / CSS - put page content higher in source than horizontal header menu code - how?

CSS - put page content higher in source than horizontal header menu code - how?

Locked

Started by dogtags on 17 Jan 2008, 8:51 PM · Views: 1,869

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
17 Jan 2008, 8:51 PM
#1
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

CSS - put page content higher in source than horizontal header menu code - how?

I use templates that use a horizontal header css menu.

The menu contains a lot of entries. This means that the actual article content is way down the source page. As I understand things, search engines give lower weight to data found lower in the source.

To help remedy this, would it be possible to somehow have the page content higher in the source but still display the horizontal menu in the header in the browser, above the page content?

I've seen where you can 'float' left or right, thus allowing you to put content higher in the source and float it 'right', and then put the leftside vertical menu stuff in below the content but float it 'left'. This displays the menu on the left and the content on the right.

Is it possible to float 'top' or 'bottom' or something like that?

Any other solutions?

Many thanks :smile:

17 Jan 2008, 9:53 PM
#2
kobra avatar

kobra

Black Belt

Join Date:
Aug 2005
Location:
Arizona
Posts:
31,500
Plugin Contributions:
4

Re: CSS - put page content higher in source than horizontal header menu code - how?

If you view the loaded page source - this is constructed in order of how the page is laid out.

Do you want to alter how the page displays?

Zen-Venom Get Bitten

17 Jan 2008, 11:07 PM
#3
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: CSS - put page content higher in source than horizontal header menu code - how?

You can only float left and right. The idea is that elements float up naturally, in the order in which they are presented, to the highest free position.

To present something last, yet have it appear near the beginning can be done, but needs a high degree of CSS skill, and I'm not sure what the impact of those drop down menus would be.

I recommend Googling CSS-P or "absolute positioning in CSS"

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

21 Jan 2008, 4:25 PM
#4
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Re: CSS - put page content higher in source than horizontal header menu code - how?

Thanks so much, looks like CSS-P is the way to go, time to start experimenting, thanks, again :smile:

24 Jan 2008, 12:59 AM
#5
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Re: CSS - put page content higher in source than horizontal header menu code - how?

Could this be done using DIVs as well ?

Many thanks :smile:

24 Jan 2008, 1:17 PM
#6
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Re: CSS - put page content higher in source than horizontal header menu code - how?

How about working with 'margin-top' to position things?

24 Jan 2008, 1:44 PM
#7
kuroi avatar

kuroi

Totally Zenned

Join Date:
Apr 2006
Location:
London, UK
Posts:
10,475
Plugin Contributions:
11

Re: CSS - put page content higher in source than horizontal header menu code - how?

DogTags:

Could this be done using DIVs as well ?

Many thanks :smile:You would need some form of XHTML in which to hold the things that you were moving around, and DIVs would be a legitimate container. But they can't do the work of moving things for you.

DogTags:

How about working with 'margin-top' to position things?margin-top can only push elements apart or draw them together, so you would only be able to move elements up to a fixed location is your pages were all exactly the same height. Even then, it would push everything else out of the way to get there, messing up the layout of your pages.

Kuroi Web Design and Development | Twitter

(Questions answered in the forum only - so that any forum member can benefit - not by personal message)

25 Jan 2008, 2:11 PM
#8
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Re: CSS - put page content higher in source than horizontal header menu code - how?

Many thanks :smile: