How to Fix Sidebar Allignment

Discussion in 'HTML & Website Design' started by Dantplayer, Jan 22, 2009.

  1. #1
    Dantplayer, Jan 22, 2009 IP
  2. dlb

    dlb Member

    Messages:
    203
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    35
    #2
    Add these couple of lines to your stylesheet;
    .wp125ad odd { float:left; clear:left; }
    .wp125ad even { float:right; clear:right; }
    Code (markup):
    You may not need the 'clear' segments but give it a whirlwith and without.
     
    dlb, Jan 22, 2009 IP
  3. Dantplayer

    Dantplayer Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #3
    Hey, Thanks for the prompt reply.

    Unfortunately it isn't working. My Plugin CSS properties has this though:

    /* Styles for one-column display */
    #wp125adwrap_1c { width:100%; }
    #wp125adwrap_1c .wp125ad { margin-bottom:10px; }
    
    /* Styles for two-column display */
    #wp125adwrap_2c { width:100%; }
    #wp125adwrap_2c .wp125ad { width:125px; float:left; padding:10px; }
    PHP:
    I tried putting what you gave me in with what is already there, but I'm still not having any luck. Like this:

    /* Styles for one-column display */
    #wp125adwrap_1c { width:100%; }
    #wp125adwrap_1c .wp125ad { margin-bottom:10px; }
    
    /* Styles for two-column display */
    #wp125adwrap_2c odd { width:100%;float:left; clear:left; }
    #wp125adwrap_2c .wp125ad even { width:125px; float:right; padding:10px; clear:right; }
    PHP:
    Sidebars don't seem to have style sheets...any other ideas?
     
    Dantplayer, Jan 22, 2009 IP
  4. normalfx

    normalfx Peon

    Messages:
    111
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I think replace width:100% with specific width it should solve your problem.
     
    normalfx, Jan 23, 2009 IP
  5. Dantplayer

    Dantplayer Member

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    41
    #5
    Hey,

    Actually as it turns out it was the cell-padding that needed to be reduced just slightly. It's fine now.

    Thanks for the help anyway!
     
    Dantplayer, Jan 23, 2009 IP