Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2007
    Posts
    35
    Plugin Contributions
    0

    Default using seperate images for sideboxes and centreboxes

    Hey, after adding an image to my sideboxes i thought it was all a but to blue so i made another image of the same dimensions to my images folder it was only a different colour.

    I them when to my stylesheet and found this bit

    PHP Code:
    .leftBoxHeading, .centerBoxHeading, .rightBoxHeading {
        
    margin0em;
        
    background-color#abbbd3;
        
    background-imageurl(../images/tile_back.gif);
        
    padding0.5em 0.2em;
        } 
    I edited this to say

    PHP Code:
    .leftBoxHeading, .rightBoxHeading {
        
    margin0em;
        
    background-color#abbbd3;
        
    background-imageurl(../images/tile_back.gif);
        
    padding0.5em 0.2em;
        }

    .
    centerBoxHeading {
                      
    margin0em;
        
    background-color#abbbd3;
        
    background-imageurl(../images/centerbox_tile_header.gif);
        
    padding0.5em 0.2em;* 

    This messes up the whole layout of the page though, is there anyway i can get this too work and why does it mess up the layout?

    Thanks

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: using seperate images for sideboxes and centreboxes

    To answer this question we really need to see the site, and have a more specific statement of the problem than "this messes up the whole layout of the page". Though I'm guessing that the asterisk at the end of the .centerBoxHeading styles in place of a curly bracket might be a bit of a cliue.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Nov 2007
    Posts
    35
    Plugin Contributions
    0

    Default Re: using seperate images for sideboxes and centreboxes

    Ive changed the site back so it wouldnt help to see it, however what happens is that all the sideboxes lose their borders and squash up.

    The new products box in the center which usually displays a 3 x 3 view of products, displays 1 X 9 view

    The } was originaly there i changed it back before i wrote this thread so i had to write the code again and i made a mistake!

  4. #4
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: using seperate images for sideboxes and centreboxes

    There's nothing wrong with your revised CSS above (with the correction). It would do exactly what you wanted it to do.

    There must have been another syntactic error, but without seeing the actual code you used, I have no way of knowing what it might have been.

    I'd recommend trying again, since you were heading along the right lines.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

 

 

Similar Threads

  1. Larger font size for prices on sideboxes and centreboxes
    By dgent in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 11 Nov 2010, 10:34 AM
  2. Seperate Sidebox Content Background Images for left and right sideboxes.
    By Jordin in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 22 Jan 2010, 10:31 PM
  3. Images for seperate dropdowns
    By golfador in forum Setting Up Categories, Products, Attributes
    Replies: 0
    Last Post: 14 Jul 2009, 08:31 PM
  4. Using buttons/images in left hand sideboxes
    By mommydesigns in forum Templates, Stylesheets, Page Layout
    Replies: 17
    Last Post: 14 Dec 2006, 05:00 AM
  5. Using 'title' and 'alt' for images and info
    By chufty bill in forum General Questions
    Replies: 5
    Last Post: 29 Oct 2006, 10:21 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