Results 1 to 8 of 8
  1. #1
    Join Date
    Sep 2009
    Posts
    95
    Plugin Contributions
    0

    Default separate styling for sideboxes

    I would like to have the top padding in the left and right sideboxes set to different values, but both seem to be bound together in the .centeredcontent area.

    How do I style these separately?

    Thank you!

    ilsita
    Zen-cart 1.3.8a * Template premium1c, * my zen-cart(nsfw!!): Tunti Enterprises.

  2. #2
    Join Date
    Sep 2009
    Posts
    95
    Plugin Contributions
    0

    Default Re: separate styling for sideboxes

    Sorry, I mean .sideboxcontent not .centeredcontent
    Zen-cart 1.3.8a * Template premium1c, * my zen-cart(nsfw!!): Tunti Enterprises.

  3. #3
    Join Date
    May 2008
    Posts
    250
    Plugin Contributions
    1

    Default Re: separate styling for sideboxes

    Hi ilsita

    Each sidebox has been given a div id. You just need to add this (along with your required styling) to your stylesheet.css.

    For example, if you want the Categories sidebox styled differently to the others, add something like:

    #categories {
    color: #94cd666;
    text-align: right;
    }


    #categoriesHeading {
    text-transform: lowercase;
    text-align: right;
    }

    That should do the trick.

  4. #4
    Join Date
    Sep 2009
    Posts
    95
    Plugin Contributions
    0

    Default Re: separate styling for sideboxes

    Thank you kdays!

    I think I need something a little more complicated :)

    My categories is a list of ezpages, and I took down my regular "categories" list. Then, I added a new image to the title of the ezpages, and adjusted the .sideboxcontent padding to accomodate it, but the change takes effect in both sideboxes...

    I hope that makes sense.
    Zen-cart 1.3.8a * Template premium1c, * my zen-cart(nsfw!!): Tunti Enterprises.

  5. #5
    Join Date
    May 2008
    Posts
    250
    Plugin Contributions
    1

    Default Re: separate styling for sideboxes

    Still should be the same thing, you're just styling #ezpagesHeading and #ezpagesContent instead as the sidebox you want to style differently.

  6. #6
    Join Date
    Sep 2009
    Posts
    95
    Plugin Contributions
    0

    Default Re: separate styling for sideboxes

    I must have really hashed things up.

    The only thing that seems to adjust the padding of the ezpages categories list is .sideboxcontent. But that adjusts both columns at once. (Using #categories didn't seem to have any effect at all.)

    I think what I might have to do is add a couple of classes, to distinguish one from the other?

    The left column says this:

    #ezpages .leftboxcontainer
    #ezpagesheading .leftboxheading
    #ezpagescontent .sideboxcontent


    And the right column says this (same for "search", "manufacturers" etc):

    #searchcontent .sideboxcontent
    .centeredcontent
    Zen-cart 1.3.8a * Template premium1c, * my zen-cart(nsfw!!): Tunti Enterprises.

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

    Default Re: separate styling for sideboxes

    CSS classes and ids are case sensitive. You need to follow the capitalization exactly for a selector to be recognized.

    #ezpagescontent .sideboxcontent

    is not the same as

    #ezpagesContent .sideBoxContent

    Your stylesheet appears to do this correctly, so that's not the problem. (except for this:)
    Code:
    .leftboxheading {
    background-image: url("..images/categorieshd.gif");
    margin-bottom: 20px;
    }
    You have lots of different rules that can apply to the same sidebox elements, scattered over your stylesheet. I don't have time to examine them all now, but you should make sure that the specific ones for the ezpages sidebox are after all generic .sideBoxContent rules and the like.

  8. #8
    Join Date
    Sep 2009
    Posts
    95
    Plugin Contributions
    0

    Default Re: separate styling for sideboxes

    Oh my gosh, I know I have made a complete mess in there. I tend to tinker before I know what the heck I'm doing. Sort of bombsaway!

    OK, I'll go back in and try to straighten things up.

    Thank you!

    Quote Originally Posted by gjh42 View Post
    CSS classes and ids are case sensitive. You need to follow the capitalization exactly for a selector to be recognized.

    #ezpagescontent .sideboxcontent

    is not the same as

    #ezpagesContent .sideBoxContent

    Your stylesheet appears to do this correctly, so that's not the problem. (except for this:)
    Code:
    .leftboxheading {
    background-image: url("..images/categorieshd.gif");
    margin-bottom: 20px;
    }
    You have lots of different rules that can apply to the same sidebox elements, scattered over your stylesheet. I don't have time to examine them all now, but you should make sure that the specific ones for the ezpages sidebox are after all generic .sideBoxContent rules and the like.
    Zen-cart 1.3.8a * Template premium1c, * my zen-cart(nsfw!!): Tunti Enterprises.

 

 

Similar Threads

  1. Separate template if user goes to separate address...
    By Quality Refurbished in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 28 Apr 2013, 02:19 AM
  2. Replies: 6
    Last Post: 7 Mar 2013, 04:36 PM
  3. Can I use a scrolling sidebox instead of separate sideboxes?
    By discoverytdi in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 20 Aug 2011, 08:59 AM
  4. Styling Call for Price
    By coxdabd in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 20 Dec 2010, 07:54 PM
  5. Styling individual sideboxes/column size by page
    By nomad73 in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 2 Jun 2009, 03:14 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