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

3 columns, order in text browsers

Please tell me how to put web content into three percentage-defined columns
when seen in a graphical browser, but so that a text-based browser will see
the
middle column first. I'm guessing I need CSS to allow me to type the HTML
file
in this order:
<div class="middle">content of the middle 60 percent</div>
<div class="left">content of the left 20 percent</div>
<div class="right">content of the right 20 percent</div>
Thank you for your time -- Mike Lepore -- lepore , at - bestweb , dot - net
Jul 27 '06 #1
6 1732
Mike Lepore wrote:
Please tell me how to put web content into three percentage-defined
columns when seen in a graphical browser, but so that a text-based
browser will see the middle column first. I'm guessing I need CSS to
allow me to type the HTML file in this order:
Something like this?

http://benmeadowcroft.com/webdev/css.../3-column.html

--
-bts
-Warning: I brake for lawn deer
Jul 28 '06 #2
Beauregard T. Shagnasty wrote:
Mike Lepore wrote:
>Please tell me how to put web content into three percentage-defined
columns when seen in a graphical browser, but so that a text-based
browser will see the middle column first.
Something like this?

http://benmeadowcroft.com/webdev/css.../3-column.html
True, the HTML for that page does have the text for the middle column appear
first,
but what lines in the style sheet do it? The style sheets that go with that
page are mostly
concerned with margins, padding, borders, etc. I can't find in there the
answer to
my question. This is all I need:

<div class="middle">content of the middle 60 percent</div>
<div class="left">content of the left 20 percent</div>
<div class="right">content of the right 20 percent</div>

Jul 31 '06 #3
On 2006-07-31, Mike Lepore wrote:
Beauregard T. Shagnasty wrote:
>Mike Lepore wrote:
>>Please tell me how to put web content into three percentage-defined
columns when seen in a graphical browser, but so that a text-based
browser will see the middle column first.
Something like this?

http://benmeadowcroft.com/webdev/css.../3-column.html

True, the HTML for that page does have the text for the middle
column appear first, but what lines in the style sheet do it? The
style sheets that go with that page are mostly concerned with
margins, padding, borders, etc. I can't find in there the answer to
my question. This is all I need:

<div class="middle">content of the middle 60 percent</div>
<div class="left">content of the left 20 percent</div>
<div class="right">content of the right 20 percent</div>
..left {
position: absolute;
top: 5em;
left: 0;
width: 20%;
}

..right {
position: absolute;
top: 5em;
right: 5px;
width: 20%;
padding: 0;
}

..middle {
position: absolute;
top: 5em;
right: 20%;
padding: 1em;
left: 20%;
}

--
Chris F.A. Johnson, author <http://cfaj.freeshell.org>
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
===== My code in this post, if any, assumes the POSIX locale
===== and is released under the GNU General Public Licence
Jul 31 '06 #4
"Chris F.A. Johnson" <cf********@gmail.comwrote in message
news:hh************@xword.teksavvy.com...
On 2006-07-31, Mike Lepore wrote:
>Beauregard T. Shagnasty wrote:
>>Mike Lepore wrote:
Please tell me how to put web content into three percentage-defined
columns when seen in a graphical browser, but so that a text-based
browser will see the middle column first.

Something like this?

http://benmeadowcroft.com/webdev/css.../3-column.html

True, the HTML for that page does have the text for the middle
column appear first, but what lines in the style sheet do it? The
style sheets that go with that page are mostly concerned with
margins, padding, borders, etc. I can't find in there the answer to
my question. This is all I need:

<div class="middle">content of the middle 60 percent</div>
<div class="left">content of the left 20 percent</div>
<div class="right">content of the right 20 percent</div>

.left {
position: absolute;
top: 5em;
left: 0;
width: 20%;
}

.right {
position: absolute;
top: 5em;
right: 5px;
width: 20%;
padding: 0;
}

.middle {
position: absolute;
top: 5em;
right: 20%;
padding: 1em;
left: 20%;
}
Nice layout, but I can see a potential problem with it. If someone wanted to
add a footer below all three columns, this layout would not work. This is
because the absolute positioning would make the content and side-bars take
up no space in the normal flow of the page. Is there a modification that can
be made to allow these footers and still keep the content first in the HTML?

Thanks,
Martin
Jul 31 '06 #5
Martin Eyles wrote:
Nice layout, but I can see a potential problem with it. If someone
wanted to add a footer below all three columns, this layout would not
work. This is because the absolute positioning would make the content
and side-bars take up no space in the normal flow of the page. Is
there a modification that can be made to allow these footers and
still keep the content first in the HTML?
Link on the left of the original page I mentioned, goes to:
<http://benmeadowcroft.com/webdev/csstemplates/3-column-with-footer.html>

--
-bts
-Warning: I brake for lawn deer
Jul 31 '06 #6
"Beauregard T. Shagnasty" <a.*********@example.invalidwrote in message
news:yt********************@bgtnsc05-news.ops.worldnet.att.net...
Martin Eyles wrote:
>Nice layout, but I can see a potential problem with it. If someone
wanted to add a footer below all three columns, this layout would not
work. This is because the absolute positioning would make the content
and side-bars take up no space in the normal flow of the page. Is
there a modification that can be made to allow these footers and
still keep the content first in the HTML?

Link on the left of the original page I mentioned, goes to:
<http://benmeadowcroft.com/webdev/csstemplates/3-column-with-footer.html>
Sorry, didn't read the page, just went straight to the HTML structure and
CSS.
Jul 31 '06 #7

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 | ============================================ | | ...
4
by: jake | last post by:
Maybe some kind person can help with a suggestion or two ;-) I want to construct a banner on a number of pages in the format: LHS: Text (variable content) RHS. Logo ..... each with a...
1
by: anonieko | last post by:
This example applies to javascript, table, cells, rows > > How do you access rows and columns of a HTML table? > > > <script language="javascript"> alert('start');
7
by: Alex | last post by:
Hi Everone, I need some advice on how to setup 4 columns where the outside two are absolute (120px) and the inner two (side by side) are relevent (Fluid) and change with the screen. Here's my...
10
by: VA | last post by:
I got the following function to swap table columns from somewhere on the Internet function swapColumns (table, colIndex1, colIndex2) { if (table && table.rows && table.insertBefore && colIndex1...
2
by: CSL | last post by:
I am using the DataGrid in a Windows Application, how can I adjust the widths of each column individually.
5
by: billuy | last post by:
Is there a way to sort by a specified column in a listview? I'd like my users to be able to click on the column heading and have the listview sort by that column. Thanks, Billyb
2
by: jthep | last post by:
How can I use bulk insert to insert a text file where the columns in the text file is in different order than the columns in the table? I have a ZIP table with Zip_Code, Zip_City, Zip_State and...
3
by: nagmvs | last post by:
Hi to all I have one table with 6 columns and 20 rows.I want to sort each and every column when i click the column name in the table. for sorting i create one more page.when i click the column...
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
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: 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
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.