|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
CSS Layout
I'm working on an all CSS layout for my site to increase speed and make things easier on myself, as well as to create something that will actually support standards for once.
However, I've run in to a bit of a problem with one of the layout boxes. I want to create a "bar" that will be located at the bottom of every page. It should be 100% wide and have no margins between it and the sides or bottom of the screen. It needs to be 20 pixels tall. Right now, this is what I have: PHP Code:
As you can see, I also require right and left aligned text on either side of the box as well. My problem is that when any text in the content portion of the site becomes longer than the window, it simply "goes behind" the box, rather than just pushing it down to the bottom. Does anybody have any suggestions for this? Is it fixable? |
|
#2
|
|||
|
|||
|
|
|
#3
|
|||
|
|||
|
That simply moves it to the top of the page, rather than allowing it to stay at the bottom of every page, regardless of the length of the content.
|
|
#4
|
|||
|
|||
|
Yeah, sorry about that. This is a perennial CSS question, that's replaced the old question about getting a table/table cell to render to the bottom of the document. It's easy to do with scripting, but I haven't seen a pure CSS-based solution. Maybe someone else has one.
|
|
#5
|
|||
|
|||
|
I got it!
What I had to do was nest all of my content in an overall div and then place the bottom bar right below the content in that same div. |
|
#6
|
|||
|
|||
|
Fireman-x...
Could you post the solution? Very interested... |
|
#7
|
|||
|
|||
|
Yeah, lemme clean up my code a bit and I'll post it...
|
|
#8
|
|||
|
|||
|
test.php:
PHP Code:
test.css: PHP Code:
Last edited by Fireman-x : October 17th, 2002 at 09:30 PM. |
![]() |
| Viewing: Dev Shed Forums > Web Design > CSS Help > CSS Layout |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|