Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default itemTitle color CSS issue

    I spent a lot of time tinkering with stylesheet.css, reading posts, and analyzing FF's Web Developer's results, and I still can't figure out a simple thing.

    On the product listing page, how do I make the itemTitle appear in the same blue color as "Price" and "Item Name"? I got so far as to get the right effect when hovered over.

    http://www.robbiemart.com/shop/index...index&cPath=79

    ZC 1.38a

    Cheers,

    R

  2. #2
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default Re: itemTitle color CSS issue

    I should add to my question- make it blue without changing the color of any other text.

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: itemTitle color CSS issue

    Looks blue to me.

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

  5. #5
    Join Date
    Dec 2005
    Posts
    1,509
    Plugin Contributions
    6

    Default Re: itemTitle color CSS issue

    Add the following to your stylesheet:
    #productListHeading {
    color: #0000cc;
    }
    Or if you want to make sure all of the headings on your site match that you could add that same line to your existing stylesheet like this (find this section in your stylesheet and add the line in red):

    h1, h2, h3, h4, h5, h6 {
    color:#0000CC;
    margin:0.3em 3px;
    }
    Last edited by econcepts; 14 Oct 2010 at 03:16 PM.
    Eric
    20 Ways to Increase Sales Using Zen Cart
    Zen Cart contribs: Simple Google Analytics, Export Shipping Information

  6. #6
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default Re: itemTitle color CSS issue

    Thanks, but those options didn't work. I didn't clarify that I'm talking about the item names which are links/clickable- in this case, "Test Item" and "Test Item 22." Actually, the same should go for a link in the item description (if I add one).

    I tried

    a:link, #productListingHeading {
    color: #0000cc;
    font-weight: bold;
    text-decoration: none;
    }

    Weird, because I did the a:hover correctly...but that was for the mainwrapper, I believe.

  7. #7
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default Re: itemTitle color CSS issue

    Wait a sec, I just noticed it does look fine in IE while the issue remains in FF. Hm... And it's just the opposite- the title/link is blue like I want, but hovering turns it black.

    I have a feeling I tinkered too much with the stylesheet...created a few new 'a:links' to get what I have so far...

  8. #8
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: itemTitle color CSS issue

    Still blue, and blue with underline on hover in IE8 and Firefox. Try clearing Firefox's cache.

  9. #9
    Join Date
    Jan 2009
    Location
    Montreal, Canada
    Posts
    228
    Plugin Contributions
    0

    Default Re: itemTitle color CSS issue

    Clearing the cache helped me realize (I think) that there's something wrong with the a:visited in my stylesheet, even though I triple checked and they all look good (I created a few new a:link, a:visited, and a:hover for this design).

    Because after clearing the cache and seeing the linked text the way I want it, the same issue happened after clicking on them- they turned black, even though they're set to remain blue. Do others see that, too?

    If two parts of the stylesheet affect the same text, which one "wins"? I'll probably figure this out if I give it a rest for a day, but I'd appreciate any more comments to spare me the misery of more css tinkering. And yes, I've been analyzing the elements with FF's Web Developer.

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

    Default Re: itemTitle color CSS issue

    The stronger one wins:)
    To be precise, the one with more specificity, which uses higher-grade selectors closer to the level of the element, takes precedence - an id is stronger than a class which is stronger than an HTML element like <a>. If two selectors have the same strength, the last one in the file wins.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Layout issue / css problem with IE only. Can't find the issue!
    By linnx in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 2 Apr 2011, 10:54 AM
  2. Color changing issue, maybe css causing it?
    By dermit in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 3 Sep 2010, 09:24 PM
  3. ItemTItle of new procucts hover style
    By Jerry5763837 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 18 Sep 2008, 09:50 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