How can I create two columns on either side of a page with the background images? |
How can I create two columns on either side of a page with the background images? |
Jerad |
Apr 14 2007, 06:38 PM
Post
#1
|
Group: Members Posts: 2 Joined: 14-April 07 Member No.: 2,522 |
How can I use two background images for creating vertical columns on either side of the page?
I've tried searching all over for a solution. This is the closest that I've been able to get to http://jerad.atspace.com/test.html I would like to have identical sides somehow. Any suggestions? I would prefer to not have to use a single image due to the variety of screen resolutions. Yes, I'm very new to css. Thanks for anybody's time, |
pandy |
Apr 14 2007, 07:07 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,731 Joined: 9-August 06 Member No.: 6 |
Yeah, BODY isn't higher than its content. Normally a background for body paints the whole height of the window anyway, but not when you also use a background for HTML. It's kinda messy.
How much content will you have? I.e. is there a risk a page will be shorter than the window? If not there is no problem. When the content is there, the background for body will be there too. You may want to remove margin and padding from body though. If the content is going to be short you might try this. CODE html,body { height: 100%; margin: 0; padding: 0 } It works in most newer browsers but there are no guarantees. http://www.quirksmode.org/css/100percheight.html |
Jerad |
Apr 14 2007, 07:44 PM
Post
#3
|
Group: Members Posts: 2 Joined: 14-April 07 Member No.: 2,522 |
It works awesome now!
Thanks so much! |
Lo-Fi Version | Time is now: 26th April 2024 - 08:48 AM |