473,614 Members | 2,487 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Footer?

Hi all,

I would like to know how to get two rows of text links to appear at the
bottom of a page. Generally I have been using <div> tags with the id
attribute and CSS to place blocks of text, tables and images where I want
them to be, but this has got me a little stuck. My HTML code is:

<div id="footer" class="footer">
Home | About | Essays | Discussions | Member Area | Links & Resources |
Contact<p>
Text Only | Alternative Versions | Accessibility | Site Map | Help</div>

My CSS code is:

div#footer {
position : absolute;
left : 132.00pt;
bottom : 0pt;
width : 465.00pt;
align : center;
z-index : 2;
}

Problem is, that the text (lets call it the footer) I am controlling appears
over the top of some other text (actually text in a table) rather than right
at the bottom of the page vertically beneath the table. Also if I resize my
browser window, the "footer" also moves in relation to the bottom of the
browser window rather than staying in a fixed position at the bottom of my
page. The two rows of text I am trying to place at the bottom of my page
even occur as the last two lines of code in my HTML right before the </body>
and </html> tags. So what am I doing wrong here?

Regards,
C.B.
Mar 25 '06 #1
17 1988
With neither quill nor qualm, Cerebral Believer quothed:
Hi all,

I would like to know how to get two rows of text links to appear at the
bottom of a page. Generally I have been using <div> tags with the id
attribute and CSS to place blocks of text, tables and images where I want
them to be, but this has got me a little stuck. My HTML code is:

<div id="footer" class="footer">
Home | About | Essays | Discussions | Member Area | Links & Resources |
Contact<p>
Text Only | Alternative Versions | Accessibility | Site Map | Help</div>

My CSS code is:

div#footer {
position : absolute;
left : 132.00pt;
bottom : 0pt;
width : 465.00pt;
align : center;
z-index : 2;
}

Problem is, that the text (lets call it the footer) I am controlling appears
over the top of some other text (actually text in a table) rather than right
at the bottom of the page vertically beneath the table. Also if I resize my
browser window, the "footer" also moves in relation to the bottom of the
browser window rather than staying in a fixed position at the bottom of my
page. The two rows of text I am trying to place at the bottom of my page
even occur as the last two lines of code in my HTML right before the </body>
and </html> tags. So what am I doing wrong here?


It sounds like you want the "footer" _either_ at the bottom of the page
or at the bottom of the viewport, whichever is "lower". If you simply
want it at the bottom of the page, don't position it.

--
Neredbojias
Contrary to popular belief, it is believable.
Mar 25 '06 #2
Cerebral Believer wrote:
So what am I doing wrong here?


1. You're using absolute positioning. (There are only a very few
situations when absolute positioning is needed, and if you use it,
you *really* need to know what you're doing.)

2. You're specifying lengths using points as a unit. (Points are
only really appropriate for print--and probably embossed--media.)

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Mar 25 '06 #3

"Neredbojia s" <in*****@neredb ojias.com> wrote in message
news:MP******** *************** *@news.isp.com. ..
With neither quill nor qualm, Cerebral Believer quothed:
Hi all,

I would like to know how to get two rows of text links to appear at the
bottom of a page. Generally I have been using <div> tags with the id
attribute and CSS to place blocks of text, tables and images where I want
them to be, but this has got me a little stuck. My HTML code is:

<div id="footer" class="footer">
Home | About | Essays | Discussions | Member Area | Links & Resources |
Contact<p>
Text Only | Alternative Versions | Accessibility | Site Map | Help</div>

My CSS code is:

div#footer {
position : absolute;
left : 132.00pt;
bottom : 0pt;
width : 465.00pt;
align : center;
z-index : 2;
}

Problem is, that the text (lets call it the footer) I am controlling
appears
over the top of some other text (actually text in a table) rather than
right
at the bottom of the page vertically beneath the table. Also if I resize
my
browser window, the "footer" also moves in relation to the bottom of the
browser window rather than staying in a fixed position at the bottom of
my
page. The two rows of text I am trying to place at the bottom of my page
even occur as the last two lines of code in my HTML right before the
</body>
and </html> tags. So what am I doing wrong here?


It sounds like you want the "footer" _either_ at the bottom of the page
or at the bottom of the viewport, whichever is "lower". If you simply
want it at the bottom of the page, don't position it.


Hi,

I tried the idea of not positioning it, and removed the <div> tags, this
made the footer shoot to the top of the page. Forgive my ignorance, I could
be way off base here, I am a learner, but if I remember what I read on the
w3org site correctly, if everything else is on a page is positioned using
<div> & stylesheets, and I have one item on the page which is not positioned
using the same methond, even though that item appears last in the HTML code,
will that item appear by default at the top of the page because the other
items are removed from the "document flow".

It really is my intention to control everything by <div> & CSS so that I can
adjust elements site-wide through simple changes in the relevant
stylesheets, rather than having to modify each page individually.

Regards,
C.B.
Mar 26 '06 #4

"Toby Inkster" <us**********@t obyinkster.co.u k> wrote in message
news:17******** ****@ophelia.g5 n.co.uk...
Cerebral Believer wrote:
So what am I doing wrong here?
1. You're using absolute positioning. (There are only a very few
situations when absolute positioning is needed, and if you use it,
you *really* need to know what you're doing.)


I noticed that my other options were, Fixed | Relative | Static, I have
tried all of those, and sometimes the item ("footer") just dissapears
completely. What would you suggest is the best method of positioning seeing
as all my other page content is positioned using <div> & CSS.
2. You're specifying lengths using points as a unit. (Points are
only really appropriate for print--and probably embossed--media.)


Do you know any point to pixel convertors?

Regards,
C.B.


Mar 26 '06 #5
"Cerebral Believer" <ce************ ***@ntlworld.co m> wrote:

"Toby Inkster" <us**********@t obyinkster.co.u k> wrote in message
news:17******* *****@ophelia.g 5n.co.uk...

2. You're specifying lengths using points as a unit. (Points are
only really appropriate for print--and probably embossed--media.)


Do you know any point to pixel convertors?


Depends entirely on settings on the individual's user's computers.
However, for many users 1pt = 1 1/3 pixels. But if you are defining
text sizes or anything that is impacted by text sizes (e.g. line
heights, the heights of boxes containing text, etc.) then pixels are
an equally bad idea as points.

Steve
--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Mar 26 '06 #6
With neither quill nor qualm, Cerebral Believer quothed:

"Neredbojia s" <in*****@neredb ojias.com> wrote in message
news:MP******** *************** *@news.isp.com. ..
With neither quill nor qualm, Cerebral Believer quothed:
Hi all,

I would like to know how to get two rows of text links to appear at the
bottom of a page. Generally I have been using <div> tags with the id
attribute and CSS to place blocks of text, tables and images where I want
them to be, but this has got me a little stuck. My HTML code is:

<div id="footer" class="footer">
Home | About | Essays | Discussions | Member Area | Links & Resources |
Contact<p>
Text Only | Alternative Versions | Accessibility | Site Map | Help</div>

My CSS code is:

div#footer {
position : absolute;
left : 132.00pt;
bottom : 0pt;
width : 465.00pt;
align : center;
z-index : 2;
}

Problem is, that the text (lets call it the footer) I am controlling
appears
over the top of some other text (actually text in a table) rather than
right
at the bottom of the page vertically beneath the table. Also if I resize
my
browser window, the "footer" also moves in relation to the bottom of the
browser window rather than staying in a fixed position at the bottom of
my
page. The two rows of text I am trying to place at the bottom of my page
even occur as the last two lines of code in my HTML right before the
</body>
and </html> tags. So what am I doing wrong here?
It sounds like you want the "footer" _either_ at the bottom of the page
or at the bottom of the viewport, whichever is "lower". If you simply
want it at the bottom of the page, don't position it.


Hi,

I tried the idea of not positioning it, and removed the <div> tags, this
made the footer shoot to the top of the page. Forgive my ignorance, I could
be way off base here, I am a learner, but if I remember what I read on the
w3org site correctly, if everything else is on a page is positioned using
<div> & stylesheets, and I have one item on the page which is not positioned
using the same methond, even though that item appears last in the HTML code,
will that item appear by default at the top of the page because the other
items are removed from the "document flow".


Yes, that is true with absolute or fixed positioning. However, I've
never seen a page where _everything_ in it was so positioned.
It really is my intention to control everything by <div> & CSS so that I can
adjust elements site-wide through simple changes in the relevant
stylesheets, rather than having to modify each page individually.


You may want to rethink that strategy and, especially, make your page
more fluid or you'll probably run into more problems akin to the footer
one.

And as for the footer prob, perhaps you can put the footer container
inside the last/lowest of your other containers (which you said are all
positioned) and position it below the final other content.

--
Neredbojias
Contrary to popular belief, it is believable.
Mar 26 '06 #7
Cerebral Believer wrote:

"Toby Inkster" <us**********@t obyinkster.co.u k> wrote in message
news:17******** ****@ophelia.g5 n.co.uk...
Cerebral Believer wrote:

<snip>
Do you know any point to pixel convertors?


Points are a unit of measure commonly used in the print industry. If I
remember correctly, 72 points equals one inch.

Pixels have to do with screen resolution, and their size varies monitor to
monitor. I seem to remember calibrating my monitor a few years ago and
having a pixel height and width of 1/83rd and 1/87th of an inch. That was
at 1024x768 resolution resolution, with the picture stretched to the edges
of my monitor. I now view at 1280x1024 on each of my two monitors, so my
pixels have shrunk by about 20%. On the other hand, I do occasionally
change my resolution to 800x600 just so I can view a site in a much smaller
viewport. At that point, my pixel size is about 20% larger.

In other words, converting point to pixels is about as easy as going for a
fifteen kilogram drive. You may be able to figure out the measurements
specific to your monitor and create the formula for your specific
situation, but it will only be a very rough guide for the rest of us.

Carolyn
--
Carolyn Marenger

Mar 26 '06 #8
Cerebral Believer wrote:
I noticed that my other options were, Fixed | Relative | Static, I have
tried all of those, and sometimes the item ("footer") just dissapears
completely.


For the vast majority of things, static is what you want. Relative can be
handy *occasionally*.

You can then use the natural flow of HTML, combined with "float" for most
positioning purposes.

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact

Mar 26 '06 #9
Cerebral Believer wrote:
So what am I doing wrong here?


1. You're using absolute positioning. (There are only a very few
situations when absolute positioning is needed, and if you use it,
you *really* need to know what you're doing.)


I noticed that my other options were, Fixed | Relative | Static, I have
tried all of those, and sometimes the item ("footer") just dissapears
completely. What would you suggest is the best method of positioning seeing
as all my other page content is positioned using <div> & CSS.

Without an URL showing your test case it is hard to give useful suggestions.
2. You're specifying lengths using points as a unit. (Points are
only really appropriate for print--and probably embossed--media.)


Do you know any point to pixel convertors?

ROTFL!
Use % for font sizes, and specifically 100% for the main content font size.
Use EMs for spacing around text.
This way your site adapts to the visitor's preferences, settings and
equipment.
--
jmm (hyphen) list (at) sohnen-moe (dot) com
(Remove .AXSPAMGN for email)
Mar 26 '06 #10

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

Similar topics

82
10663
by: Peter Diedrich | last post by:
The site design is pretty simple: ============================================ | Head | ============================================ | | | | | | | | | left | center | right | | | | | | | | |
7
4533
by: Darin | last post by:
I have a report that sub-totals on a group, then grand-totals at the report footer. If there's only one group, the sub-total and grand total are redundant, so I only want to show one of them. I know how to count the groups, then hide the report footer if there's only one group, but my problem is I want to hide the group footer (sub-total), not the report footer (because the report footer references what the grand total is for, which is...
3
1935
by: John Crowley | last post by:
I keep running into this over and over again... I want a block server control that renders a header and footer, and child controls in between. But I don't want a templated control, for the following reasons: 1) Render blocks are not allowed inside a templated control. 2) I want the inner controls scoped at the parent aspx (or ascx), not at the template naming container. This type of control would be ideal for website headers and...
9
5050
by: tshad | last post by:
How do I find (and set) a couple of labels in the Footer after a DataGrid is filled? I have a bunch of DataGrids that get displayed nested inside a DataList. The datagrid looks like: ******************************************************************************* <asp:DataGrid visible="False" border=1
6
2183
by: tshad | last post by:
I need to get to a status label I have on my footer section of my datalist. There is no event happening that would go to the footer. I am just doing some processing and want to update the label on the footer. At the moment, I go through the dataListItems like so: for each oItem as DataListItem in DataList1.Items trace.warn("inside for loop oItem type = " & oItem.itemType.ToString())
0
1896
by: LilBuh | last post by:
Hello :) this is a repost... i ve been looking for a way since last week ... i have a template html file that i modify from my code... i need to print this file without IE's Header and Footer or any print dialog then once the printing's done... restore the original Header and footer but here's what happens: - save the current header and footer
13
14913
by: Greg | last post by:
Most suggestions on this topic recommend to use a page footer and make it visible only on the last page. My problem is that the footer is half of the height of a page which means the detail would show on only the top half of each page with whitepace at the bottom of each page. How can I get the detail to fill each page with my "half page height" report footer at the bottom of the last page? Any suggestions to solve this would be...
13
2358
Death Slaught
by: Death Slaught | last post by:
I have my entire page in my "main" div. div.main { width: 100%; height: 100%; border: 1px solid gray; } on the left of the page I have a banner.
0
2669
by: gnewsgroup | last post by:
Well, I am trying to use the footer row of a GridView for insertion purpose. There are some articles about this, for example, the gridviewguy.com has an example, which always displays the footer row. I would like to display the footer row, only when a LinkButton "Add New" is clicked. And after the new record is saved to the database, let the footer row disappear. In the LinkButton's click event handler, I simply say:
0
8198
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8142
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8642
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8591
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8294
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8444
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5549
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2575
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1758
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.