473,661 Members | 2,429 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Floating Footer

I have a layout with a four-column page. The content is dynamic, and I want
to have a footer that will float up or down depending on the content. I've
tried several approaches and can't get it to work.

Here's the page:

http://development2.holotech.net/portal/

If I give the footer item an bottom property, it disappears altogether. Any
ideas?

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 20 '05 #1
9 10655
Alan Little <al**@n-o-s-p-a-m-phorm.com> wrote:
I have a layout with a four-column page. The content is dynamic, and I want
to have a footer that will float up or down depending on the content. I've
tried several approaches and can't get it to work.

Here's the page:

http://development2.holotech.net/portal/
You've absolutley positioned everything which often causes trouble;
you have tables and font tags in there for no good reason and a lot of
the links don't work when JavaScript is disabled.
If I give the footer item an bottom property, it disappears altogether. Any
ideas?


Maybe this will help:
http://steve.pugh.net/test/test57.html (long content)
http://steve.pugh.net/test/test57a.html (short content)
The two pages have identical CSS and HTML just differeing amounts of
content to demonstrate the principle.

Works in most modern and some older browsers.

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/>
Jul 20 '05 #2
Carved in mystic runes upon the very living rock, the last words of
Steve Pugh of comp.infosystem s.www.authoring.stylesheets make plain:
Alan Little <al**@n-o-s-p-a-m-phorm.com> wrote:
I have a layout with a four-column page. The content is dynamic, and I
want to have a footer that will float up or down depending on the
content. I've tried several approaches and can't get it to work.

Here's the page:

http://development2.holotech.net/portal/
You've absolutley positioned everything which often causes trouble;

I didn't know that.
you have tables and font tags in there for no good reason Well, the tables are mainly placeholders until I get the CSS worked out,
then they'll become DIVs. I think I'm only using FONT tags for the CLASS
tag. From what I understand, it's largely a matter of preference whether
to use a FONT or SPAN tag to apply the style. Is there more to it than
that?
and a lot of the links don't work when JavaScript is disabled.

That's intentional. I generally don't use JS for anything but bells-and-
whistles stuff, but in this case I have a captive audience, so I put it
to use.
If I give the footer item an bottom property, it disappears
altogether. Any ideas?


Maybe this will help:
http://steve.pugh.net/test/test57.html (long content)
http://steve.pugh.net/test/test57a.html (short content)
The two pages have identical CSS and HTML just differeing amounts of
content to demonstrate the principle.


Thanks, I'll check it out.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 20 '05 #3
Alan Little <al**@n-o-s-p-a-m-phorm.com> wrote:
Carved in mystic runes upon the very living rock, the last words of
Steve Pugh of comp.infosystem s.www.authoring.stylesheets make plain:
Alan Little <al**@n-o-s-p-a-m-phorm.com> wrote:

http://development2.holotech.net/portal/


you have tables and font tags in there for no good reason

Well, the tables are mainly placeholders until I get the CSS worked out,
then they'll become DIVs. I think I'm only using FONT tags for the CLASS
tag. From what I understand, it's largely a matter of preference whether
to use a FONT or SPAN tag to apply the style. Is there more to it than
that?


When you have things like <p class="foo"><fo nt
class="bar">tex t</font></p> there's usually no reason not to move the
styles from bar into foo and get rid of the font tags altogether.
and a lot of the links don't work when JavaScript is disabled.

That's intentional. I generally don't use JS for anything but bells-and-
whistles stuff, but in this case I have a captive audience, so I put it
to use.


Ah, see the name of the group? See the letters www? If you're not
authoring for the world wide web then you should say so in your
original post, otherwise it's assumed. And you may be better off
posting to an intranet specific group anyway.

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/>
Jul 20 '05 #4
Carved in mystic runes upon the very living rock, the last words of
Steve Pugh of comp.infosystem s.www.authoring.stylesheets make plain:
Alan Little <al**@n-o-s-p-a-m-phorm.com> wrote:
Carved in mystic runes upon the very living rock, the last words of
Steve Pugh of comp.infosystem s.www.authoring.stylesheets make plain:
Alan Little <al**@n-o-s-p-a-m-phorm.com> wrote:
http://development2.holotech.net/portal/

From what I understand, it's largely a matter of
preference whether to use a FONT or SPAN tag to apply the style. Is
there more to it than that?


When you have things like <p class="foo"><fo nt
class="bar">tex t</font></p> there's usually no reason not to move the
styles from bar into foo and get rid of the font tags altogether.


But what if I want to apply a different style to some of the text within
the <p>?
and a lot of the links don't work when JavaScript is disabled.

That's intentional. I generally don't use JS for anything but
bells-and- whistles stuff, but in this case I have a captive audience,
so I put it to use.


Ah, see the name of the group? See the letters www? If you're not
authoring for the world wide web then you should say so in your
original post, otherwise it's assumed. And you may be better off
posting to an intranet specific group anyway.


Perhaps "captive audience" wasn't the correct term. This site will be on
the Web, but viewed mainly on the computers PTW provides for its guests.
Anyway, CSS is CSS, regardless of where it's served from, and that's what
I'm trying to work out.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 20 '05 #5
Steve Pugh of comp.infosystem s.www.authoring.stylesheets make plain:
When you have things like <p class="foo"><fo nt
class="bar">tex t</font></p> there's usually no reason not to move the
styles from bar into foo and get rid of the font tags altogether.

Alan Little <al**@n-o-s-p-a-m-phorm.com> wrote: But what if I want to apply a different style to some of the text within
the <p>?


Neither <font> nor <span> have any meaning on their own. But surely there's
a reason why do you want the different style. The meaning behind the
different style determines the appropriate markup.

Is the text supposed to be emphasized? <em>text</em>
Is the text supposed to be strongly emphasized? <strong>text</strong>
Is the text supposed to be an example of keyboard input? <kbd>text</kbd>
And so on...

If it helps, try to consider what happens when your CSS is ignored.
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"Cheaters never win; they just finish first." - Johhny Hart
Jul 20 '05 #6
Carved in mystic runes upon the very living rock, the last words of
Steve Pugh of comp.infosystem s.www.authoring.stylesheets make plain:
http://steve.pugh.net/test/test57.html (long content)
http://steve.pugh.net/test/test57a.html (short content)
The two pages have identical CSS and HTML just differeing amounts of
content to demonstrate the principle.


OK, I get the basic idea, though I'm not sure I'm 100% clear on what it's
doing (still very new to CSS). However, trying to extrapolate your code
out to three (and ultimately four) columns, I get this:

http://development2.holotech.net/portal/steve.html

so there's obviously something I'm not getting.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 20 '05 #7
Alan Little <al**@n-o-s-p-a-m-phorm.com> wrote:
Carved in mystic runes upon the very living rock, the last words of
Steve Pugh of comp.infosystem s.www.authoring.stylesheets make plain:
http://steve.pugh.net/test/test57.html (long content)
http://steve.pugh.net/test/test57a.html (short content)
The two pages have identical CSS and HTML just differeing amounts of
content to demonstrate the principle.


OK, I get the basic idea, though I'm not sure I'm 100% clear on what it's
doing (still very new to CSS). However, trying to extrapolate your code
out to three (and ultimately four) columns, I get this:

http://development2.holotech.net/portal/steve.html

so there's obviously something I'm not getting.


I've been working on a three column version today (with the added
twist of background colours that fill the whole height of the page)
and my current version is at
http://steve.pugh.net/test/test57-long.html

It's quite complex stuff. If you're looking for a quick fix then
you're best bet would be to hire a professional.

My experiments are based on the work of a lot of people, some of whom
have had the time to document what they've done:
http://www.positioniseverything.net/ordered-floats.html
http://www.fu2k.org/alex/css/index.mhtml
I can't find the page I stole the footer itself from.

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/>
Jul 20 '05 #8
Carved in mystic runes upon the very living rock, the last words of
Steve Pugh of comp.infosystem s.www.authoring.stylesheets make plain:
My experiments are based on the work of a lot of people, some of whom
have had the time to document what they've done: http://www.positioniseverything.net/ordered-floats.html
http://www.fu2k.org/alex/css/index.mhtml


Nice resources. Thanks! The ordered-floats did the trick for me; I just
took his idea and extrapolated it to four columns:

http://development2.holotech.net/4c.html

That could probably be done better, but it works for me. I think I like
floating. So much to learn!

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 20 '05 #9
Carved in mystic runes upon the very living rock, the last words of Alan
Little of comp.infosystem s.www.authoring.stylesheets make plain:
Nice resources. Thanks! The ordered-floats did the trick for me; I just
took his idea and extrapolated it to four columns:

http://development2.holotech.net/4c.html

That could probably be done better, but it works for me. I think I like
floating. So much to learn!


Well, I claimed victory too soon. That layout does display nicely in IE,
but fails in NS and Opera. Interestingly, it works in IE because IE uses
a non-standard way of rendering floats. I hate to admit it, but in this
particular case, I find IE's rendition more intuitive than the standard.

Anway, I worked a bit more, trying various combinations of floats,
wrappers and various properties. I came up with a layout that works in IE
and Opera, but fails in NS. If I could come up with *any* four-column,
floating-footer layout that would work in NS, I could use server-side
code to select the appropriate stylesheet, but NS insists on refusing to
cooperate.

Well, I'm afraid that concludes this adventure into CSS for this newbie.
I need to get back on the clock and finish up this job so I can get paid.
Unfortunately that means I'm going to have to use tables. I like what
I've seen so far of CSS, but it definitely could be better. Probably the
most part of the problem is in implementation, but it seems to me the
standard could be done better. I could be wrong, that's just my first
impressions based on my admittedly limited experience so far.

I'll come back to this problem, as I want to bring my design skills up to
the level of my programming skills, but that's it for this round. Thanks
to those who helped.

--
Alan Little
Phorm PHP Form Processor
http://www.phorm.com/
Jul 20 '05 #10

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

Similar topics

9
1799
by: Sam W | last post by:
Hi. Is there any way using CSS that I would position a copyright notice at the bottom of the page, no matter how much it is scrolled, as though it were floating. Many Thanks, Sam
11
2241
by: J44xm | last post by:
Hello, folks. Is it possible to get the bottom of a floating element (in case, a DIV) to dynamically adjust itself so that it essentially attaches to the bottom of the page, even if the floating element is not at the top of the page? Please see this illustration I've made; it will show the layout of the site: http://www.2and2.net/Uploads/Images/j44xm_css-float-help.png I can't use percentages since the header at the top is fixed size.
7
1837
by: Frances Del Rio | last post by:
http://www.francesdelrio.com/fixed_div.html I picked up this neat script from www.dynamicdrive.com that does something I had always wanted to do, namely put a div at a certain distance from bottom of pg (for name-&-add-of-co footer..) and have it stay there even if user scrolls up or down.. but: it gets screwed up if user resizes window -- unless they reload after resizing.. I know possibility of user resizing window is remote, but...
0
982
by: Roy | last post by:
Hey all, Can't find any info online about this, but I have a datagrid with a footer row. Simple enough. Using javascript or possibly css, I'd like to have the footer "float" at the bottom of the page, regardless of the length of the datagrid. Ex., if the datagrid is 50 records long and scrolls far off the page, the footer will still "float" at the bottom of the page regardless of user scrolling, etc... This is essentially a detached...
6
1515
by: Usenet | last post by:
I might be being silly here. On my links page I've got a whole load of floating boxes, which I'm really pleased with. But then I want the footer to be *below* them. On my current site (http://www.vowleyfarm.co.uk/CommunityLinks.htm) I've cheated by putting the footer in a floating box as well, but now I'm moving to using a CMS I would like not to hack my page template in this way.
0
1165
by: jstathan | last post by:
Starting off, here's the page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>JINSA Report #576 - Stop and Think</title> <style type="text/css"> body {
1
2725
by: chr.aleksander | last post by:
Hey, I need a solution to two problems: #1 I use a three column layout, where the right and left columns are 150px wide and floated. The center column is not floated, with margins 150px on each side to place it between the other two. I use padding: bigval; and margin: -bigval; (together with overflow: hidden; on the container) to make the three columns look equally long. But because the center column is not floated (and I don't want...
1
2547
by: Eniac0 | last post by:
Hello, ive been recently appointed to transforming our table-full site into a nice accessible and table-free website. to make the story short, everything was going rather smoothly until i got this issue with all browsers. basically, im trying to float a picture on the left side of a paragraph.
5
2318
by: jemcgui | last post by:
I've been building a site that has a quirk in it. It will display just as intended in IE but not firefox. The left "nav" div which is floating left will be forced down to the bottom of the page. The main content area on the right is floating right and stays fine. The weird part is that a refresh will always correct this problem. and the problem will not occur on all the pages though they have identical set-ups. The site is at...
0
8341
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
8851
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...
1
8542
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
8630
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
7362
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4177
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4343
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2760
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
2
1984
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.