| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Apr 2007 Location: England
Posts: 429
![]() ![]() | CSS Footer Hello, I'm learning to code in XHTML/CSS. So far, (my first coding project) I have this: http://jrcdesigns.co.uk/test/Leafy/index.html ????: NamePros.com http://www.namepros.com/programming/484942-css-footer.html The problem I am having is getting the footer image (The Leafy thing at the bottom) to be at the bottom. Right now it is set to absolute positioning, however this is just a short term fix that I am not happy with. How can I have the footer not positioned absolute, with 100% width at the bottom of the page? I have tried putting it outside the container however doing this makes it appear near the top of the page. Any ideas? |
| |
| | #2 (permalink) |
| New Member Join Date: Jun 2008
Posts: 3
![]() | Looks like you have the image CSS position Code: position:absolute; Code: position:relative; Code: width:100%; |
| |
| | #3 (permalink) |
| DNOA Member Join Date: May 2004
Posts: 5,040
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | For your div#leaf styles, do: Code: position: absolute; bottom: 0px; z-index: 10; width: 100%; ????: NamePros.com http://www.namepros.com/showthread.php?t=484942 Maybe want to add a padding:0px or margin:0px or both if you still have issues. EDIT: I know you said you don't want absolute positioning, but I'm assuming you want them to be at the bottom... if you positioned relative, it would be stuck to the bottom of the content and not the frame and it would look kinda bad... |
| |