![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
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? |
#3
| ||||
| ||||
|
|
Alan Little <alan (AT) n-o-s-p-a-m-phorm (DOT) 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, |
|
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- |
|
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. |
#4
| |||
| |||
|
|
Carved in mystic runes upon the very living rock, the last words of Steve Pugh of comp.infosystems.www.authoring.stylesheets make plain: Alan Little <alan (AT) n-o-s-p-a-m-phorm (DOT) 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? |
|
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. |
#5
| |||
| |||
|
|
Alan Little <alan (AT) n-o-s-p-a-m-phorm (DOT) com> wrote: Carved in mystic runes upon the very living rock, the last words of Steve Pugh of comp.infosystems.www.authoring.stylesheets make plain: Alan Little <alan (AT) n-o-s-p-a-m-phorm (DOT) 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"><font class="bar">text</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. |
#6
| |||
| |||
|
|
When you have things like <p class="foo"><font class="bar">text</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>? |
#7
| |||
| |||
|
| 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. |
#8
| |||
| |||
|
|
Carved in mystic runes upon the very living rock, the last words of Steve Pugh of comp.infosystems.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. |
#9
| |||
| |||
|
|
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 |
#10
| |||
| |||
|
|
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! |
![]() |
| Thread Tools | |
| Display Modes | |
| |