473,388 Members | 1,417 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,388 software developers and data experts.

Layout problem

This one's a wrinkle on the usual 3-column layout problem. I need to have
fixed-width left and right side rails and a fluid center area, with a header
and a footer that go across all three. As usual, any one of the three
content areas may be the tallest. The wrinkle is that I need the right side
rail to contain a div (as wide as the right rail) that is aligned to the
*bottom* of the content area (just above the footer), even when the distance
from the header to the footer is controlled by the left or center columns.
Right now, the layout is done using a table, which works okay, except the
bottom part of the right rail can be much higher than is needed for its
content (which isn't ideal).

Here's an ASCII-art version of what I need:

+-------------------------------------------+
| header |
+--------+----------------------+-----------+
| left | center | right |
| | | |
| | | |
| | | |
| | +-----------+
| | | bottom |
| | | right |
+--------+----------------------+-----------+
| footer |
+-------------------------------------------+
I've read of many CSS solutions to the 3-column problem, and several ways of
aligning a div at the bottom of its parent, but I can't seem to figure out a
combined solution. Help please!

Ted Hopp
te*@zigzagworld.com
Jun 28 '07 #1
3 1581
Ted Hopp wrote:
>
+-------------------------------------------+
| header |
+--------+----------------------+-----------+
| left | center | right |
| | | |
| | | |
| | | |
| | +-----------+
| | | bottom |
| | | right |
+--------+----------------------+-----------+
| footer |
+-------------------------------------------+
I've read of many CSS solutions to the 3-column problem, and several ways of
aligning a div at the bottom of its parent, but I can't seem to figure out a
combined solution. Help please!
Make a single right div "wrapper" and place right and bottom right into
the wrapper div like so:

+-------------------------------------------+
| header |
+--------+----------------------+-----------+
| left | center | wrapper |
| | |+---------+|
| | || right ||
| | |+---------+|
| | |+ bottom ||
| | || right ||
| | |+---------+|
+--------+----------------------+-----------+
| footer |
+-------------------------------------------+

--
Gus
Jun 28 '07 #2
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
</div>
<div id="footer">footer
<div id="bottomRight">
bottom<br>right
</div>
</div>
</body>
</html>

I should add: you can give #centre also margin-left: 250px and
margin-right: 250px so its contents don't wrap underneath the floats.
I think not quite... by doing this you also bring in the side
panels.

Perhaps bring down <div id="centre"to just before where you
have "Centre's content goes here"

--
dorayme
Jun 29 '07 #3
On 2007-06-29, dorayme <do************@optusnet.com.auwrote:
In article <sl*********************@bowser.marioworld>,
Ben C <sp******@spam.eggswrote:
</div>
<div id="footer">footer
<div id="bottomRight">
bottom<br>right
</div>
</div>
</body>
</html>

I should add: you can give #centre also margin-left: 250px and
margin-right: 250px so its contents don't wrap underneath the floats.

I think not quite... by doing this you also bring in the side
panels.
Yes of course you are right: the side panels are inside centre.
Perhaps bring down <div id="centre"to just before where you
have "Centre's content goes here"
Exactly, like this:

<div id="left">
...
</div>
<div id="left">
...
</div>
<div id="centre">
....
</div>
Jun 29 '07 #4

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

Similar topics

82
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | ...
39
by: Zak McGregor | last post by:
Hi all Are there any good solutions to aligning form field names and input boxes without resorting to tables? I am struggling to do this nicely at the moment. Thanks Ciao Zak
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...
30
by: Diane Wilson | last post by:
I'm trying (once again) to figure out how to make a robust CSS layout style that can replace tables. I'd like to be able to do a basic two-column layout, with a one-column header, a two column...
15
by: Tamblyne | last post by:
This problem has got to have a simple solution and I can't be the first person who has ever handled it. Perhaps Google is no help because I'm not using the right terms? (I did find one post...
10
by: Luke | last post by:
Hi. I am trying to make correct layout, here is an example of (dynamically generated content via jsp): http://localhost/www/layout.htm Most outer div is positioned absolute (if not then it...
14
by: Anoop | last post by:
Hi, I am new to this newsgroup and need help in the following questions. 1. I am workin' on a GUI application. Does C# provides Layout Managers the way Java does to design GUI? I know that it...
26
by: mark | last post by:
The idea of this is very simle. The site is 800px wide and sits in the middle of the browser window, on either side of the site I want a different background image aligned against it. If I were...
5
by: Ed Sproull [MSFT] | last post by:
First I'm pretty new to ASP.NET and I'm having a simple problem. I have small website with a header, sidebar and the the content. I want my content to appear beside my sidebar which seems to be a...
53
by: brave1979 | last post by:
Please check out my javascript library that allows you to create any layout for your web page, nested as deep as you like, adjusting to width and height of a browser window. You just describe it in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.