iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Graphics & Design Discussion Forum Post your graphics design questions/comments/ideas in here. Ask questions, post tutorials, discuss trends and best practices. Sub-forum for website accessibility and usability.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-10-2008, 01:46 AM
naz naz is offline
WebProWorld New Member
 
Join Date: Jun 2008
Location: Sunshine Coast
Posts: 19
naz RepRank 0
Default css issue: footer div at top of markup

Hi guys

I am trying to find a way to position the footer at the base of the page using css but I want the content of the footer to be the first div in the html. For example:
<body>
<div id="footer"> Footer links etc here</div>
<div id="content"></div>
</body>

I have tried a number of ways and have come close but in ie it put the footer at the bottom of the viewport.. which is in the middle of the page if you scroll down. Has anyone done this or seen any resources that may help please?

Thanks
Naz
Reply With Quote
  #2 (permalink)  
Old 07-10-2008, 02:04 AM
mjsmith's Avatar
WebProWorld New Member
 
Join Date: Jul 2008
Location: CA, USA
Posts: 3
mjsmith RepRank 0
Default Re: css issue: footer div at top of markup

What are you trying to do make the footer at the top? Then this wouldnt be a footer its gonna be header.. Anyway, could you give us a link for the site so we may take a look?
Reply With Quote
  #3 (permalink)  
Old 07-10-2008, 02:15 AM
naz naz is offline
WebProWorld New Member
 
Join Date: Jun 2008
Location: Sunshine Coast
Posts: 19
naz RepRank 0
Default Re: css issue: footer div at top of markup

No I want the footer to display in the browser at the bottom like a footer should But I want the code and content of the footer at the top of the markup. It's for an seo experiment.
I can't put the actual site up here but if I do a test tomorrow I will link to that.
__________________
Aussie SEO chick Kook Multimedia: Sunshine Coast Seo
Reply With Quote
  #4 (permalink)  
Old 07-11-2008, 05:12 AM
mjsmith's Avatar
WebProWorld New Member
 
Join Date: Jul 2008
Location: CA, USA
Posts: 3
mjsmith RepRank 0
Default Re: css issue: footer div at top of markup

Hmm, thats a bit odd. lol.

Anyway, in your css for your "footer" class, try adding
Code:
position: absolute;
bottom: 0;
that would make the footer go at the bottom of the page.
Reply With Quote
  #5 (permalink)  
Old 07-11-2008, 05:56 PM
ran_dizolph's Avatar
WebProWorld Veteran
 
Join Date: Jul 2005
Location: Windsor, ON
Posts: 543
ran_dizolph RepRank 2
Default Re: css issue: footer div at top of markup

mjsmith is correct on both fronts. Absolute positioning will pull the footer out of the regular flow and put it in it's own space. It doesn't make a whole lot of sense to do what you're doing though. As far as I'm concerned, a 'footer' at the top of a page is a 'header'.

Sticky Footer is a sweet method to keep your footer where it belongs: At the bottom of a page.
Reply With Quote
  #6 (permalink)  
Old 07-11-2008, 06:43 PM
naz naz is offline
WebProWorld New Member
 
Join Date: Jun 2008
Location: Sunshine Coast
Posts: 19
naz RepRank 0
Default Re: css issue: footer div at top of markup

:S I have it working.. was a little more complicated. I will post up an example of how I did it in case anyone is interested. In the end it came down to the fact that much of what I had was correct by it needed the right doctype to make it work in all browsers. Lol.. it IS a footer and it IS at the bottom of the page.. maybe I didnt explain right both times.. its only at the top as far as where it is in the markup / code / html.
__________________
Aussie SEO chick Kook Multimedia: Sunshine Coast Seo
Reply With Quote
  #7 (permalink)  
Old 07-11-2008, 09:20 PM
Web-Design-Guy's Avatar
WebProWorld Pro
 
Join Date: Jun 2008
Location: Perth, Western Australia
Posts: 110
Web-Design-Guy RepRank 1
Default Re: css issue: footer div at top of markup

Let us know the outcome of your experiment (assume you want bots to read the content of the footer first, right?). As it happens, on our site we do something similar - but in reverse. We have a line of 'promotional text' that appears on the page above the h1 tag and main content but in the markup we've put it in below.

Our current SEO experiment: Does it matter where your website is hosted?
Reply With Quote
  #8 (permalink)  
Old 07-12-2008, 02:36 AM
WebProWorld New Member
 
Join Date: May 2005
Posts: 10
dlsweb RepRank 1
Default Re: css issue: footer div at top of markup

Quote:
Originally Posted by naz View Post
In the end it came down to the fact that much of what I had was correct by it needed the right doctype to make it work in all browsers.
So what doctype was needed?
Reply With Quote
  #9 (permalink)  
Old 07-14-2008, 02:44 AM
deepsand's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2004
Location: Philadelphia, PA
Posts: 3,062
deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9
Default Re: css issue: footer div at top of markup

Quote:
Originally Posted by Web-Design-Guy View Post
Let us know the outcome of your experiment (assume you want bots to read the content of the footer first, right?). As it happens, on our site we do something similar - but in reverse. We have a line of 'promotional text' that appears on the page above the h1 tag and main content but in the markup we've put it in below.
Bots don't "read" anything; they merely fetch a page, cache it, and then go get another one.

When that cached page is eventually indexed, the indexing engine assigns it to a processor for parsing; it does not "read" it in the sense that you mean. In fact, the parser doesn't care about the order, so long as it's unambiguously parsable.

What evidence is there to demonstrate that the indexing engine weights content according to its position within a page?
Reply With Quote
  #10 (permalink)  
Old 07-14-2008, 03:34 AM
Web-Design-Guy's Avatar
WebProWorld Pro
 
Join Date: Jun 2008
Location: Perth, Western Australia
Posts: 110
Web-Design-Guy RepRank 1
Default Re: css issue: footer div at top of markup

Of course bots don't "read" anything - in the sense you have assumed I meant. Perhaps my language was a bit lose but I think most people here (amateurs and pros alike) will have understood what I meant.

In terms of SEO - and it is as much art as it is science - my belief is that the order of content on a page is important. Much like a news report, with the 'biggest' headline and story of the day always coming first.

Notice also in search results themselves - the descriptive line under the main link often includes eg. email addresses, telephone numbers, dates, odd wording etc. Click thru and you'll usually find this content top of page in the source (when, to encourage click thru, a proper description may / probably would work better).

Like I said, it's my belief. Perhaps others have opinions?

Last edited by Web-Design-Guy; 07-14-2008 at 03:38 AM.
Reply With Quote
  #11 (permalink)  
Old 07-14-2008, 03:49 AM
deepsand's Avatar
WebProWorld 1,000+ Club
WebProWorld MVP
 
Join Date: May 2004
Location: Philadelphia, PA
Posts: 3,062
deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9deepsand RepRank 9
Default Re: css issue: footer div at top of markup

Quote:
Originally Posted by Web-Design-Guy View Post
In terms of SEO - and it is as much art as it is science - my belief is that the order of content on a page is important. Much like a news report, with the 'biggest' headline and story of the day always coming first.
Were the indexing engines capable of true sematical analysis, such an argument might be more easily made. In fact, were that the case, they may very well determine that your lead text was a "misplaced" footer, and discount its value.

However, since they are currently not so, to hold that they construe order to be indicative of import seems, in the absence of empirical evidence, to be speculative at best.

Quote:
Originally Posted by Web-Design-Guy View Post
Notice also in search results themselves - the descriptive line under the main link often includes eg. email addresses, telephone numbers, dates, odd wording etc. Click thru and you'll usually find this content top of page (when, to encourage click thru, a proper description may / probably would work better).
And, quite often one will find that to not be the case. But, to the extent that such holds, does that really say anything about "importance" - note your mention of "odd wording" - or of simple rote positional copying?
Reply With Quote
  #12 (permalink)  
Old 07-15-2008, 05:47 AM
tomcatuk's Avatar
WebProWorld Pro
 
Join Date: May 2007
Location: London
Posts: 160
tomcatuk RepRank 1
Default Re: css issue: footer div at top of markup

I'd think twice before trying something like this. It's fairly obvious it's an attempt to display a page differently to a bot than to a human - and they don't like that much!
__________________
Andy Fletcher, not the famous one.
Reply With Quote
Reply

  WebProWorld > Site Design > Graphics & Design Discussion Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
http://www.surftoolbar.com/ : : Constructive feedback, please not on markup. kgun Submit Your Site For Review 15 07-16-2008 05:48 PM
Semantic Markup Steven1976a Search Engine Optimization Forum 1 05-26-2007 10:06 AM
Can good code (markup) improve your rankings? Webnauts Search Engine Optimization Forum 34 01-15-2007 07:17 PM
Get Down With Markup WPW_Feedbot Graphics & Design Discussion Forum 0 02-15-2005 10:30 AM
Site redirect on Markup Validation Service?? Please help stuff4beauty2 Google Discussion Forum 0 02-01-2005 08:57 PM


All times are GMT -4. The time now is 04:05 PM.



Search Engine Optimization by vBSEO 3.3.0