Results 1 to 4 of 4
  1. #1
    Join Date
    Nov 2009
    Posts
    16
    Plugin Contributions
    0

    Default Sidebox Banner aligns too the right

    My site is almost complete but I have a slight problem with banners in both Banner_Box and Banner_Box2 on the right hand column.

    When the banners dont have a url configured they sit perfectly in the middle of the column but when the banner has an active url associated with it, the banner is aligned to the right of the column as it is at present. The site is here http://www.thegolfcabin.co.uk any help on what to change would be great, I have spent hours trying to track this down but no luck.

  2. #2
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Sidebox Banner aligns too the right

    First off, you have a file named stylesheetbak.css. Adding bak to the name doesn't prevent it from being used as a stylesheet, and since it comes after stylesheet.css, it will override at least some of the changes you make to your main stylesheet. If you need to keep a copy in that folder, name it stylesheet.bak.


    You have left/right padding in those sideboxes and their links that forces the left edge of the image over, and the images are too wide to fit in the box that way. Either make the images narrower or remove the padding.
    Last edited by gjh42; 7 May 2010 at 07:38 PM.

  3. #3
    Join Date
    Nov 2009
    Posts
    16
    Plugin Contributions
    0

    Default Re: Sidebox Banner aligns too the right

    Glen

    Thanks for that, I think the stylesheetbak.css was causing some problems that I wasnt aware of. I removed the left and right padding for sideboxcontent and the images have moved more central. Not sure why the are centred properly when they are not linking to a page but still slightly off when the are linking. Thanks for taking the time to help, it is very much appreciated.

  4. #4
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Sidebox Banner aligns too the right

    The a element inside the sideboxes also has padding. Remove that (with a rule specific to the sideboxes if the padding comes from a generic rule) and the images will center up.

 

 

Similar Threads

  1. adding more images too the Header Right oxford dark template
    By swdynamic in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 27 Sep 2014, 02:10 PM
  2. Banner Sidebox not displaying right in IE
    By drysdaleandco in forum General Questions
    Replies: 4
    Last Post: 25 Jan 2010, 03:17 AM
  3. Move the sidebox left to right and right to left(shrink the site)
    By navido in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 30 Nov 2009, 08:51 PM
  4. how do I add the small banner link on the right side
    By liningyao in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Oct 2008, 09:10 AM
  5. Sidebox - shopping cart too large for right column width
    By cshart in forum Basic Configuration
    Replies: 1
    Last Post: 24 Jan 2008, 04:05 PM

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