The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Closed TopicStart new topic
> How can I create two columns on either side of a page with the background images?
Jerad
post 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 sad.gif
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. blink.gif

Thanks for anybody's time,
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Apr 14 2007, 07:07 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Jerad
post Apr 14 2007, 07:44 PM
Post #3





Group: Members
Posts: 2
Joined: 14-April 07
Member No.: 2,522



It works awesome now!

smile.gif

Thanks so much!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 18th April 2024 - 10:40 PM