473,395 Members | 1,466 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

footer & 3 col absolute layout


hi all,

sorry I realize the topic is well known, anyway is there a way without
using javascript to have a footer always under a 3 column layout with
Absolute Positioning ?

I don' t want to use float 'cause I want to organize content in a
better order for accessibility
and search engine optimization ( content first ) and I cannot know in
advance the height of the central column 'cause the content is taken
from a database and so the central column could be shorter than the two
absolute-positioned on the side.

All tutorials I found say there is no way without using a bit of
javascript but this could be blocked by users, so any solution ?

TIA

sonya :)

Nov 29 '05 #1
4 1923
so*****@excite.it wrote:
sorry I realize the topic is well known, anyway is there a way without
using javascript to have a footer always under a 3 column layout with
Absolute Positioning ?

I don' t want to use float 'cause I want to organize content in a
better order for accessibility
and search engine optimization ( content first ) and I cannot know in
advance the height of the central column 'cause the content is taken
from a database and so the central column could be shorter than the two
absolute-positioned on the side.


Only at the bottom of the viewport and with a footer with a specified
height. If there isn't enough main content to reach the footer you will
have a gap.

IE CSS support may also be a problem.

--
Spartanicus
Nov 29 '05 #2
CT
so*****@excite.it wrote:
hi all,

sorry I realize the topic is well known, anyway is there a way without
using javascript to have a footer always under a 3 column layout with
Absolute Positioning ?

I don' t want to use float 'cause I want to organize content in a
better order for accessibility
and search engine optimization ( content first ) and I cannot know in
advance the height of the central column 'cause the content is taken
from a database and so the central column could be shorter than the two
absolute-positioned on the side.

All tutorials I found say there is no way without using a bit of
javascript but this could be blocked by users, so any solution ?

TIA

sonya :)

Is this (work in progress) page similar to what you are looking for?
http://speakenglish.noswad.me.uk

It has a hidden div in the center content, which is the length of the
side content (got the idea after seeing a message from Spartanicus
regarding 3 equally spaced images)

AD
Nov 29 '05 #3
so*****@excite.it napisaƂ(a):
hi all,

sorry I realize the topic is well known, anyway is there a way without
using javascript to have a footer always under a 3 column layout with
Absolute Positioning ?

I don' t want to use float 'cause I want to organize content in a
better order for accessibility
and search engine optimization ( content first )


I know it isn't the answer for your question, but it may be
a solution for your problem. If one additional <div> won't
make you feel bad you can create layout with content first
using floats:

<body>
<div id="wrapper">
<div id="content">
content here.
</div>

<div id="sidebarOne">
sidebar one.
</div>
</div>

<div id="sidebarTwo">
sidebar 2
</div>
<div id="footer"> footer </div>
</body>

CSS for sidebar1 | content | sidebar2:
#content { float:right; width: 66%; }
#sidebarOne { float:left; width: 33%; }
#sidebarTwo { float: right; width:33%; }
#wrapper { float:left; width:66%; }
#footer { clear:both; }

CSS for sidebar2 | content | sidebar1:
#content { float:left; width: 66%; }
#sidebarOne { float:right; width: 33%; }
#sidebarTwo { float: left; width:33%; }
#wrapper { float:right; width:66%; }
#footer { clear:both; }

You can make easily:
sb2 | sb1 | content
and
content | sb1 | sb2

You'd need reorder the code (or use absolute values) to
create sb1 | sb2 | content or content | sb2 | sb1.
Nov 29 '05 #4
so*****@excite.it wrote:

hi all,

sorry I realize the topic is well known, anyway is there a way without
using javascript to have a footer always under a 3 column layout with
Absolute Positioning ?

I don' t want to use float 'cause I want to organize content in a
better order for accessibility
and search engine optimization ( content first ) and I cannot know in
advance the height of the central column 'cause the content is taken
from a database and so the central column could be shorter than the two
absolute-positioned on the side.

All tutorials I found say there is no way without using a bit of
javascript but this could be blocked by users, so any solution ?


There is this: http://positioniseverything.net/articles/onetruelayout/

which includes any order/full height columns using CSS although I'm not sure
how robust it is.

--
Robert
http://brightonfixedodds.net

Nov 29 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Will Buntin | last post by:
I am trying to design my site without tables, using CSS for positioning and am having limited success. My main issue is I have a three column layout and my footer needs to run across the page,...
7
by: Xavier Onassis | last post by:
I would be grateful for recommendations for a CSS layout (header, 2 cols, footer) that can accomodate dynamically added elements. I am not having any luck so far getting this to work in...
0
by: Old Wolf | last post by:
I have a site that I laid out with tables, and lots of grotty hacks and lots of markup generated by client-side javascript. I'm in the process of converting it to "nice" CSS code but have got...
0
by: John A Grandy | last post by:
for asp.net web-forms meant to be printed : apparently, a style="POSITION: ABSOLUTE" panel (asp.net renders this as an html div element) *following* a page-break does not absolutely position the...
7
by: Chris Nelson | last post by:
I'm new to the positioning aspects of CSS and I'm going crazy trying to do something that seems like it should be fairly easy. I've Googled all over and read CSS tutorials and not found an answer....
0
by: lucretia | last post by:
Hi, I've created a layout for an Ajax side that is "single paged" in that when the browser is resized, so is the page. The header is locked to the top, the right panel is locked to the right...
2
by: Alex | last post by:
Hi. I have files in the "Scorecard Previews" subfolder of the virtual path of my app, the absolute path being C:\Data\Ordering Process\Scorecard Previews\ I have a javascript function...
9
by: Ronny | last post by:
Ok, I did spend tons of time now (as a beginner in css stylecoding) (but making html pags for many years), to get this right. But I am overseeing something. At this link you find a drawing of...
14
by: issentia | last post by:
I'm working on this site: http://www.essenceofsoy.com/redesign/index2.html and I'm having a few problems with getting the layout exactly right. 1) When the menu items are rolled over, they...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.