Results 1 to 3 of 3
  1. #1
    Join Date
    Jan 2009
    Location
    Sask, Canada.
    Posts
    44
    Plugin Contributions
    0

    Default Seperate Sidebox Content Background Images for left and right sideboxes.

    Hello,

    I am new to css and I need a little help.

    I need to get the left and right sideboxes to have different background images in the content area.

    Right now the css for the sidebox content currently can only be changed to one image that will work on both the right and left sidebox content area.

    Code:
    .sideBoxContent {
    	background-color: transparent;
            background-image: url(../images/sbcontent.png);
            background-position:bottom;
    	padding: 0.4em;
    	}
    I want seperate images for the left and right sidebox content areas so I tried changing the css to:

    Code:
    .rightBoxContent {
    	background-color: transparent;
            background-image: url(../images/sbcontentright.png);
            background-position:bottom;
    	padding: 0.4em;
    	}
    
    .leftBoxContent {
    	background-color: transparent;
            background-image: url(../images/sbcontentleft.png);
            background-position:bottom;
    	padding: 0.4em;
    	}
    This does not work for me.

    Can someone please help me fix the css so I can have seperate background images for the left and right sidebox content areas?

    Thanks,

    Jordin

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: Seperate Sidebox Content Background Images for left and right sideboxes.

    Try:

    .rightBoxContainer .sideBoxContent { background-image:whatever;}

  3. #3
    Join Date
    Jan 2009
    Location
    Sask, Canada.
    Posts
    44
    Plugin Contributions
    0

    Default Re: Seperate Sidebox Content Background Images for left and right sideboxes.

    Thanks for the help!

    I am running into a problem doing it that way though. It does work for using seperate background images in the sidebox content but it causes spacing issues when I combine the sideBoxContainer and sideBoxContent css information.

    Here is the side box content css:

    Code:
    .sideBoxContent {
    	background-color: transparent;
            background-image: url(../images/sbcontentright.png);
            background-position:bottom;
    	padding: 0.4em;
    	}
    and here is the side box container css:

    Code:
    .rightBoxContainer { 
            margin: 0em;
    	border: 0px solid #404040;
    	border-bottom: 0px solid #404040;
            margin-top: 1.5em;
    	}
    when I combine them like this it causes spacing issues:

    Code:
    .rightBoxContainer .sideBoxContent { 
            margin: 0em;
    	border: 0px solid #404040;
    	border-bottom: 0px solid #404040;
            margin-top: 1.5em;
            background-color: transparent;
            background-image: url(../images/sbcontentright.png);
            background-position:bottom;
    	padding: 0.4em;
    	}
    It does allow me to use seperate background images for the left and right side box content but it causes spacing isues.

    Is there some way I can get seperate background images for the left and right side box content and keep the css for the .rightBoxContainer and .sideBoxContent seperate?

    Or is there some other way to do this?

 

 

Similar Threads

  1. sidebox for both left and right column ?
    By bear1728 in forum General Questions
    Replies: 1
    Last Post: 10 Jul 2010, 09:46 PM
  2. How to change background colour BEHIND left/right sideboxes?
    By maza in forum Templates, Stylesheets, Page Layout
    Replies: 14
    Last Post: 7 Jun 2010, 02:19 AM
  3. Adding Background images to RIGHT and LEFT
    By spectreman in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 20 Jun 2009, 04:24 AM
  4. using seperate images for sideboxes and centreboxes
    By edealbase in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 8 Nov 2007, 10:12 AM
  5. Different background left - right sidebox.
    By kristofvanmol in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 18 Feb 2007, 11:49 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg