Body background image at very bottom of page?
Hi,
I'm having some trouble getting my background image to sit at the very bottom of the page (not the content area, or footer, but the entire width of the browser window). I've tried removing the padding-bottom attributes, but doing so actually raises the background image higher. Here is the relevant code that I have in the body styles section: Code:
background: #000000 url('<?php bloginfo('template_directory'); ?>/images/pagebg.jpg') repeat-x bottom; |
Try putting the following code in ATO>Add HTML/CSS Inserts>HTML Inserts: Body Bottom.
HTML Code:
html{background:#EEF2FB;background-image:url('http://www.laurenacooper.com/rcf/wp-content/themes/ataualpa/images/pagebg.jpg');background-repeat:repeat-x;background-position:left bottom;} |
Unfortunately, that does not work. When I place that code in the body bottom section of the Css inserts the code is not implemented, but rather just prints directly below my footer. I've quadruple checked the code for accuracy, and I cannot find any errors.
Any ideas? Thank you for the suggestion, however. |
I should have said try putting it in the CSS Inserts section. Sorry
|
That got the image back, so yay! What I have discovered is that the background image aligns itself with the footer, meaning if the page is so long that the scrollbar appears in the browser window, the bg image is at the bottom of the screen. When the content area is short, however, the image jumps up to stay level with the footer. Weird!! Any ideas on this?
|
I'm not quite sure what you mean but you might also try this code as opposed to the code you put in CSS Inserts since you don't have two background images. It may align as you expect.
ATO>Body, Text, & Links>Body Style HTML Code:
background:#EEF2FB;background-image:url('http://www.laurenacooper.com/rcf/wp-content/themes/ataualpa/images/pagebg.jpg');background-repeat:repeat-x;background-position:left bottom; |
All times are GMT -6. The time now is 11:27 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.