473,413 Members | 2,043 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,413 software developers and data experts.

how to specify a three-part header?

I just google-searched this group and could not find any references to
this. I'm trying to figure out how to specify a three-part header with
html. For example,

left part center part right part

For old troffists, this is what the .tl construct does. But how would it
be done in html? I tried <div align = left>left part</div>
<div align = center> ..., which almost worked, except each part is on a new
line - not quite what I want.

It looks like the COL construct in a table might do what I want - <col
align = left> <col align = center> <col align = right>, but my browser,
mozilla 1.5, ignores it.

Am I out of luck?

Thanks!

--
Jim Cochrane; jt*@dimensional.com
[When responding by email, include the term non-spam in the subject line to
get through my spam filter.]
Jul 20 '05 #1
12 3243
Els
Jim Cochrane wrote:
I just google-searched this group and could not find any references to
this. I'm trying to figure out how to specify a three-part header with
html. For example,

left part center part right part

For old troffists, this is what the .tl construct does. But how would it
be done in html? I tried <div align = left>left part</div>
<div align = center> ..., which almost worked, except each part is on a new
line - not quite what I want.

It looks like the COL construct in a table might do what I want - <col
align = left> <col align = center> <col align = right>, but my browser,
mozilla 1.5, ignores it.

Am I out of luck?


Not necessarily ;-)
You need floats.
http://www.w3.org/TR/REC-CSS2/visuren.html#floats

--
Els

Sonhos vem. Sonhos vão. O resto é imperfeito.
- Renato Russo -

Jul 20 '05 #2
In article <sl****************@shell.dimensional.com>,
Jim Cochrane <jt*@shell.dimensional.com> wrote:
I just google-searched this group and could not find any references to
this. I'm trying to figure out how to specify a three-part header with
html. For example,

left part center part right part


Steal it. <http://www.heddes.nl/>

--
Kris
<kr*******@xs4all.netherlands> (nl)
<http://www.cinnamon.nl/>
Jul 20 '05 #3
On 3 Mar 2004 01:04:52 -0700, Jim Cochrane <jt*@shell.dimensional.com>
wrote:
I just google-searched this group and could not find any references to
this. I'm trying to figure out how to specify a three-part header with
html. For example,

left part center part right part


I think my three-part footer does what you need - see sig.

--
Stephen Poley

http://www.xs4all.nl/~sbpoley/webmatters/
Jul 20 '05 #4
On 3 Mar 2004 01:04:52 -0700, Jim Cochrane <jt*@shell.dimensional.com>
wrote:
I just google-searched this group and could not find any references to
this. I'm trying to figure out how to specify a three-part header with
html. For example,

left part center part right part

For old troffists, this is what the .tl construct does. But how would it
be done in html? I tried <div align = left>left part</div>
<div align = center> ..., which almost worked, except each part is on a
new
line - not quite what I want.

It looks like the COL construct in a table might do what I want - <col
align = left> <col align = center> <col align = right>, but my browser,
mozilla 1.5, ignores it.

Am I out of luck?

Thanks!


Get rid of those ugly tables.

<div id="header">
<div id"=headleft">Left side content</div>
<div id"=headright">right side content</div>
<div id"=center">Center content</div>
</div>

Choose more content-descriptive names for the id's. And put them in this
order.

Style: #header {position: relative;} #headleft {float: left; width:30%;}
#headright {float: right; width:30%;} #center {margin-left: 32%;
margin-right: 32%;}

And the next div after #header is set clear: both to be safe. This might
not be plug-in ready, but it's tweakable to what you need.

Jul 20 '05 #5
On Wed, 03 Mar 2004 10:01:56 -0500, Neal <ne*****@spamrcn.com> wrote:
<div id="header">
<div id"=headleft">Left side content</div>
<div id"=headright">right side content</div>
<div id"=center">Center content</div>
</div>


Correcting my typos - all those divs are supposed to be <div
id="thenameofthediv">, not <div id"=...
Jul 20 '05 #6
In article <rl********************************@4ax.com>, Stephen Poley wrote:
On 3 Mar 2004 01:04:52 -0700, Jim Cochrane <jt*@shell.dimensional.com>
wrote:
I just google-searched this group and could not find any references to
this. I'm trying to figure out how to specify a three-part header with
html. For example,

left part center part right part


I think my three-part footer does what you need - see sig.


I like your site, but I could not find anything on a 3-part footer. I used
the search facility but did not see anything that looked relevant.

Can you give me a hint as to where it is on your site?

Thanks!
--
Jim Cochrane; jt*@dimensional.com
[When responding by email, include the term non-spam in the subject line to
get through my spam filter.]
Jul 20 '05 #7
On 3 Mar 2004 11:15:17 -0700, Jim Cochrane <jt*@shell.dimensional.com>
wrote:
In article <rl********************************@4ax.com>, Stephen
Poley wrote:


[snip]
I think my three-part footer does what you need - see sig.


I like your site, but I could not find anything on a 3-part footer.
I used the search facility but did not see anything that looked
relevant.

Can you give me a hint as to where it is on your site?


His site *uses* a three-part footer: the links are one part, the W3C icons
are the second, and his name is the third. :)

Mike

--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Jul 20 '05 #8
In article <op**************@news-text.blueyonder.co.uk>, Michael Winter wrote:
On 3 Mar 2004 11:15:17 -0700, Jim Cochrane <jt*@shell.dimensional.com>
wrote:
In article <rl********************************@4ax.com>, Stephen
Poley wrote:


[snip]
I think my three-part footer does what you need - see sig.


I like your site, but I could not find anything on a 3-part footer.
I used the search facility but did not see anything that looked
relevant.

Can you give me a hint as to where it is on your site?


His site *uses* a three-part footer: the links are one part, the W3C icons
are the second, and his name is the third. :)

Mike


Ah - how unobservant of me. Thanks for pointing this out.

However, I tried copying the page and am having some trouble with it. I
may be missing something obvious, but when I saved the site as a set of
files and point my browser to the main page file, the 3-part footer flops -
All three parts become left justified. When I point my browser to the
original page: http://www.xs4all.nl/~sbpoley/webmatters/, the layout of the
footer is as expected.

Can anyone help me figure out what I'm missing here? (The auxiliary files
under Web Matters - Main Page_files/ were also saved and I verified that they
were read when the main page loaded.)
--
Jim Cochrane; jt*@dimensional.com
[When responding by email, include the term non-spam in the subject line to
get through my spam filter.]
Jul 20 '05 #9
On 3 Mar 2004 13:44:40 -0700, Jim Cochrane <jt*@shell.dimensional.com>
wrote:
However, I tried copying the page and am having some trouble with it. I
may be missing something obvious, but when I saved the site as a set of
files and point my browser to the main page file, the 3-part footer
flops -
All three parts become left justified. When I point my browser to the
original page: http://www.xs4all.nl/~sbpoley/webmatters/, the layout of
the
footer is as expected.

Can anyone help me figure out what I'm missing here? (The auxiliary
files
under Web Matters - Main Page_files/ were also saved and I verified that
they
were read when the main page loaded.)

You need the CSS files too. The CSS file that handles the positioning is
http://www.xs4all.nl/~sbpoley/extrastyles.css and the other one is
http://www.xs4all.nl/~sbpoley/basic.css . You find these filenames in the
head of the HTML document.
Jul 20 '05 #10
Quoth the raven named Jim Cochrane:
I just google-searched this group and could not find any references to
this. I'm trying to figure out how to specify a three-part header with
html. For example,

left part center part right part


http://home.rochester.rr.com/bshagnasty/banner.html

--
-bts
-This space intentionally left blank.
Jul 20 '05 #11
In article <dy*******************@twister.nyroc.rr.com>, Beauregard T. Shagnasty wrote:
Quoth the raven named Jim Cochrane:
I just google-searched this group and could not find any references to
this. I'm trying to figure out how to specify a three-part header with
html. For example,

left part center part right part


http://home.rochester.rr.com/bshagnasty/banner.html


That's great - thanks! The item in the center ends up higher than the
others (which, being a non-expert in html and css, I could not find a
reason for), but adding a <br> for the center item seems to fix this
adequatley for my purposes.

Someone else responded that floats might provide a solution and I think
this is an example of what he meant. But I wasn't knowledgeable enough
(or didn't have enough think time) to figure it out from the link he gave.
So it helps a lot to have found this example.

Thanks again.
--
Jim Cochrane; jt*@dimensional.com
[When responding by email, include the term non-spam in the subject line to
get through my spam filter.]
Jul 20 '05 #12
Thanks very much to everyone who responded to my question. You guys have
been very helpful.

In article <kr*****************************@newszilla.xs4all. nl>, Kris wrote:
In article <sl****************@shell.dimensional.com>,
Jim Cochrane <jt*@shell.dimensional.com> wrote:
I just google-searched this group and could not find any references to
this. I'm trying to figure out how to specify a three-part header with
html. For example,

left part center part right part


Steal it. <http://www.heddes.nl/>

--
Jim Cochrane; jt*@dimensional.com
[When responding by email, include the term non-spam in the subject line to
get through my spam filter.]
Jul 20 '05 #13

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

Similar topics

17
by: Noam Raphael | last post by:
Hello, Many times I find myself asking for a slice of a specific length, and writing something like l. This happens both in interactive use and when writing Python programs, where I have to write...
2
by: Sugapablo | last post by:
Can anyone help me out with some code to change three table cells (<td>) when one is hovered over? I have a calendar grid where each day is made up of three table cells and I want all three to...
6
by: PengYu.UT | last post by:
Hi, I have the following program which use a template as a template parameter. But it seems that it doesn't work. Do you know how to make it work? Although I can change the lines with...
11
by: MP | last post by:
context: (vb6 / ado / .mdb / jet4.0 / not using access) hypothetical problem say I need to track the properties of boxes. There are three kinds, cardboard, wood, and sheet metal. Each box...
0
by: sylvain | last post by:
I create a deployment kit with VS and I want to specify a Web Site different then the Default Web Site. There are two Web Site on our Web Server and they are using the same Port (two different...
37
by: Jan Wagner | last post by:
Hi, can't figure this one out, what's the CSS way to specify the language? In HTML it would be simply an lang="xx" attribute, or XHTML xml:lang="xx", but, how about in CSS? This would be...
27
by: Chris Tomlinson | last post by:
Hi, is there any way to specify the sequence in which images load on a web page? More specifically, here is what we need to achieve: Image1 starts loading first and the browser does not...
14
by: eric.goforth | last post by:
Hello, Is there any way to directly access an element in a nodeset? For example, if working with: <blahs rec_count="16"> <blah> <yada>abc</yada> </blah>
1
by: rdemyan via AccessMonster.com | last post by:
I'm getting an error on the following delete query, which says to "specify the table containing the records you want to delete." Here's the delete action query sSQL = "DELETE * FROM As A LEFT...
3
by: =?Utf-8?B?Q0QuU21hbGxleQ==?= | last post by:
Is there a command line switch available for the EventViewer which will allow me to specify which directory to view the available logs from? I will have multiple workstations writing to a...
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
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
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
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.