Results 1 to 4 of 4
  1. #1
    Join Date
    May 2016
    Posts
    188
    Plugin Contributions
    0

    help question Help Making Tabs Look Better With CSS

    Hey,

    If you scroll down on my practice site you'll see all those ugly looking blue rectangle tabs. Any ideas how I could make these look better? For some reason the text is grey on some and black on others too, which is confusing as hell. The text is centered in some and offset in others. I can post the CSS block in here if that helps too.

    http://www.westnewtonsupply.com

    Thanks in advance.

  2. #2
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Help Making Tabs Look Better With CSS

    When right-clicking on one of those boxes, my browser gives me an "Inspect" option to use to look at that box's HTML and CSS rules.

    You'll see that they're using 'class="categoryListBoxContents"'.

    So in your CSS you can go find ".categoryListBoxContents" (note: the "." means it's referring to a "class=" for whatever follows it), and make changes there. Or add your own ".categoryListBoxContents" section to the end of your stylesheet to override whatever was set for it earlier.

    I suspect the "some are grey text" refers to your site being configured to display "previously clicked links" (which affects you in your browser, only) in a grey color. You could override this for just these boxes by defining a ".categoryListBoxContents a:clicked" in your stylesheet and setting its properties how you want them.

    I'm intentionally not giving you the complete CSS here, cuz others are better qualified to give you specifics for that. I invite them to chime in.


    In the meantime I hope this helps you get started ;)
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  3. #3
    Join Date
    May 2016
    Posts
    188
    Plugin Contributions
    0

    Default Re: Help Making Tabs Look Better With CSS

    Quote Originally Posted by DrByte View Post
    When right-clicking on one of those boxes, my browser gives me an "Inspect" option to use to look at that box's HTML and CSS rules.

    You'll see that they're using 'class="categoryListBoxContents"'.

    So in your CSS you can go find ".categoryListBoxContents" (note: the "." means it's referring to a "class=" for whatever follows it), and make changes there. Or add your own ".categoryListBoxContents" section to the end of your stylesheet to override whatever was set for it earlier.

    I suspect the "some are grey text" refers to your site being configured to display "previously clicked links" (which affects you in your browser, only) in a grey color. You could override this for just these boxes by defining a ".categoryListBoxContents a:clicked" in your stylesheet and setting its properties how you want them.

    I'm intentionally not giving you the complete CSS here, cuz others are better qualified to give you specifics for that. I invite them to chime in.


    In the meantime I hope this helps you get started ;)
    I never got around to replying to this. Thanks for chipping in, this did help a lot. I'm currently struggling to make them clickable, not really sure where I would add the code. I did see a few tutorials online that said to use like.. .CategoryListBoxContent a:hover {padding:0 }; etc.. I tried that and it seemed to make the boxes either vanish completely with the text or it made the boxes smaller and still unclickable. I was doing this in the CSS which is probably the wrong place to do it right? Since that's more for styles/color/size etc, more than controlling what it does.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,373
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Help Making Tabs Look Better With CSS

    display:block often helps to make a larger space clickable
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

 

 

Similar Threads

  1. Making website look better on Windows
    By commdiver in forum General Questions
    Replies: 24
    Last Post: 21 Jan 2011, 06:16 PM
  2. making the column display look better
    By tjthecat3 in forum Setting Up Categories, Products, Attributes
    Replies: 3
    Last Post: 13 Jan 2008, 08:33 AM
  3. Suggestions on making these products look better?
    By dman76 in forum General Questions
    Replies: 5
    Last Post: 1 Dec 2007, 07:33 AM
  4. Help with making my Zen cart look like my website
    By laurieudy in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 15 Nov 2007, 03:32 PM
  5. Category 'tabs' that *look* like tabs?
    By Moebiusenterprises in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 4 Oct 2006, 06:52 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR