This is a discussion on "CSS to add extra background to column?" within the Web Page Design section. This forum, and the thread "CSS to add extra background to column? are both part of the Design Your Website category.
|
|
|
|
|
![]() |
||
CSS to add extra background to column?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
#1
|
|||
|
|||
|
CSS to add extra background to column?
Hello
I have a site with variable length pages and a side column with some content that is generic to all pages. I'd like the background colour of the column to stretch all the way to the bottom of the page and have tried using the following code in my main css file in order to add some extra background: body { background: url(images/menu_back.gif) 95px 120px repeat-y; } (manu_back.gif is a 150px x 1px solid colour image) A column now appears 95px away from the left side, but runs from the top of the screen to the bottom, instead of starting 120px down. Could anyone tell me what I'm doing wrong? |
|
|
|
#2
|
|||
|
|||
|
repeat-y is more powerful than positioning. Afterall, you are telling it to repeat for the whole y axis. You find a similar problem if you said repeat-x.
body { background: url(images/menu_back.gif) 95px 120px repeat-y; } Have you considered setting the background of your menu column to menu_back.gif instead of setting it for your whole body? |
|
#3
|
|||
|
|||
|
Thanks for the idea, RaptorRex. I've just tried putting
background: url(images/menu_back.gif) 0px 0px repeat-y; into the menu colum style class and unfortunately it gives the same result as just using a background colour. Any other ideas? |
|
#4
|
|||
|
|||
|
Do you have a link we can see? Or can you post some code, so we can troubleshoot and test ?
Last Blog Entry: Whats in a name? (Feb 20th, 2008)
|
|
#5
|
|||
|
|||
|
Thanks for the offer, DSMag.
These are just the bits that I think are relevant. Please tell me if more would help. First attempt: From stylesheet
Second attempt: From stylesheet
|
![]() |
| Tags |
| css, add, extra, background, column |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extra Spaces! | CloudedVision | Webforumz Suggestions and Feedback | 1 | Jun 2nd, 2008 01:01 |
| Extra bandwidth for free | Late Nighter | Hosting & Domains | 7 | Nov 28th, 2007 14:19 |
| Weird extra spacing on ie6 | Voodoochilli | Web Page Design | 5 | Jun 26th, 2007 01:15 |
| Getting the extra space off of my frames | Ralis | Web Page Design | 11 | May 19th, 2007 03:07 |
| ..copy data from column A in Table A to column B in Table B? | gecastill | Databases | 10 | Jun 23rd, 2005 18:27 |