| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | 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 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 | Looks like you have the image CSS position Code: position:absolute; Code: position:relative; Code: width:100%; |
| |
| | #3 (permalink) |
| DNOA Member | For your div#leaf styles, do: Code: position: absolute; bottom: 0px; z-index: 10; width: 100%; 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...
__________________ codeboards A high-quality community of programmers -- Join today and post! We want new members! |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |