Results 1 to 5 of 5
  1. #1
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    840
    Plugin Contributions
    0

    help question text alignment in category sidebox

    Hi all,
    O'kay. New store and a fresh copy of silverfish!
    I have made a still and a rollover gif for my cat sidebox links.

    I won't give you all the chance to see my poor attempts at css coding here today.

    I will ask, what would be the best way to add my two images as a and ahover
    with normal left alignment but have the text part of the link with a left margin of about 8em?

    Thank You,
    John

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

    Default Re: text alignment in category sidebox

    Code:
    a.category-top {
        padding-left: 8em;
        background-image: url(../etc);
        background-repeat: no-repeat;
        }
    a.category-top:hover {
        background-image: url(../etc2);
        }

  3. #3
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    840
    Plugin Contributions
    0

    Default Re: text alignment in category sidebox

    That didnt work. it still let the images show and rollover but they ended up straight across the and half chopped off.

    I can get them to show up just by changing a little of what comes in silverfish but cant align the text separate from the bg images.

    John

  4. #4
    Join Date
    Feb 2007
    Location
    Pennsylvania
    Posts
    840
    Plugin Contributions
    0

    Default Re: text alignment in category sidebox

    Code:
    BOF SideBox Content
    =================*/
    /* 
    leftbox
    */
    #navColumnOne {background: url(../images/bg_sidebox.gif) repeat-y; vertical-align: top;}
    #navColumnOneWrapper {}
    .leftBoxContainer {background: transparent;}
    .leftBoxHeading {text-align: center; margin: 0em; background-color: #abbbd3; padding: 0.5em 0.2em;}
    h3.leftBoxHeading {font-size: 1em; margin: 0em; background-color: #1D5685; background-image:url(../images/bg_box_header.gif); padding: 0.5em 0.2em; color: #ffffff;}
    h3.leftBoxHeading a {font-size: 1em; color: #ffffff;}
    h3.leftBoxHeading a:hover {color: #FFFF33; text-decoration: none;} 
    
    /* 
    rightbox
    */
    #navColumnTwo {background: url(../images/bg_sidebox.gif) repeat-y; vertical-align: top;}
    #navColumnTwoWrapper {}
    .rightBoxContainer {background: transparent;}
    .rightBoxHeading {text-align: center; margin: 0em; background-color: #abbbd3;    padding: 0.5em 0.2em;}
    h3.rightBoxHeading {font-size: 1em; margin: 0em; background-color: #1D5685; background-image: url(../images/bg_box_header.gif); padding: 0.5em 0.2em; color: #ffffff;}
    h3.rightBoxHeading a {font-size: 1em; color: #ffffff;}
    h3.rightBoxHeading a:hover {color: #FFFF33;    text-decoration: none;} 
    /* 
    sidebox common
    */
    .rightBoxHeading a:visited, .leftBoxHeading a:visited, .centerBoxHeading a:visited {color: #FFFFFF;}
    .sideBoxContent {background-color: #ffffff;    padding: 0.4em;    font-size: 1.1em;    background-color: transparent;}
    .wrapper {font-size: 1.2em;}    
    .sideBoxContent ul{margin-left: 10px; padding-left: 0;}
    
    /*
    sidebox links
    */
    A.category-top {color: #900 !important; width: 100%; margin: 0px 5px 0px 0px !important; background-color: #ddd !important; padding: 2px 0px 2px 0px; border: 1px solid #fff; background-image: none !important; display: block; text-decoration: none;}
    A.category-top:hover {background: url(../images/cat_top_hover.gif) repeat-x 6px 0em !important; color:#fff !important;  border: 1px outset #f00;}
    
    A.category-subs {background-color: transparent; background-image: url(../images/cat_subs_arrow.gif); background-repeat: no-repeat; background-attachment: scroll; display: block; text-decoration: none; width: 100%; padding: 3px 2px 3px 15px; background-position: 13px 0.45em !important;}
    A.category-subs:hover {width: 90%; padding: 3px 2px 3px 15px; background-position: 13px 0.45em !important; border: 1px solid #aaa; display: block; text-decoration: none;}
    
    A.category-products {background-repeat: no-repeat; background-attachment: scroll; display: block; text-decoration: none; width: 100%; padding: 3px 2px 3px 15px; background-position: 13px 0.45em !important; background-image: url(../images/cat_prod_bullet.gif);}
    A.category-products:hover {width: 90%; padding: 3px 2px 3px 15px; background-position: 13px 0.45em !important; border: 1px solid #aaa; display: block; text-decoration: none;}
    
    A.category-links, A.category-links:visited { color: #900 !important; width: 100%; margin: 0px 5px 0px 0px !important; background-color: #ddd !important; padding: 2px 0px 2px 0px; border: 1px solid #fff; background-image: none !important; display: block; text-decoration: none;}
    A.category-links:hover {background: url(../images/bg_box_header.gif) repeat-x 6px 0em !important; color:#fff !important; border: 1px outset #00f;}
    
    /*=================
    EOF SideBox Content

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

    Default Re: text alignment in category sidebox

    What part of it didn't work? And how did it look?
    What are the background images supposed to look like? Are they supposed to fill the column? Ok, you are using display: block; to make the links expand to fill the sidebox, so bg images should be able to be full width. What did you intend to say with "straight across the and half chopped off"?

    Also, did you edit the css you show here, or somewhere else? Much of this is labeled !important, so you would not easily override it.

 

 

Similar Threads

  1. Sub category text alignment
    By leest35 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 23 Jun 2010, 11:22 AM
  2. Sidebox category text only
    By kellycs in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 10 Apr 2009, 07:35 AM
  3. Alignment of text in Category Index
    By travellers in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 23 Nov 2008, 09:14 PM
  4. Sidebox/Centerbox Text Alignment Problems
    By phildog in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 5 Jun 2006, 10:37 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