CSS to add extra background to column?

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.


 Subscribe in a reader

Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices




Reply
 
LinkBack Thread Tools
  #1  
Old Sep 20th, 2005, 10:23
New Member
Join Date: Sep 2005
Location: London, UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

  #2  
Old Sep 21st, 2005, 03:06
Junior Member
Join Date: Aug 2005
Posts: 18
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old Sep 21st, 2005, 15:57
New Member
Join Date: Sep 2005
Location: London, UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old Sep 21st, 2005, 17:13
Reputable Member
Join Date: Jul 2005
Location: Indiana, USA
Age: 29
Posts: 153
Blog Entries: 1
Thanks: 0
Thanked 0 Times in 0 Posts
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)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old Sep 22nd, 2005, 16:56
New Member
Join Date: Sep 2005
Location: London, UK
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
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
Code: Select all
body {
	background-color:#FFFFFF;
	background: url(images/menu_back.gif) 95px 120px repeat-y;
}

Second attempt:

From stylesheet
Code: Select all
#menu {
	position:absolute;
	width:190px;
	float:top;
	height:475px;
	z-index:2;
	top: 100px;
	background-color:#C0C0C0;
	left: 0px;
	background: url(images/menu_back.gif) 0px 0px repeat-y;	
}

body {
	background-color:#FFFFFF;	
}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
css, add, extra, background, column

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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


All times are GMT. The time now is 07:23.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42