Jump to content


Photo
- - - - -
Resolved

How To Target Css For Specific Category Page

css category

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1 gayatriom

gayatriom

    Advocate

  • Members

  • 559 posts

Posted 14 November 2012 - 01:06 PM

Hi. I'm trying to target CSS for a specific category that is called cookies .
I tried :

.category-cookies .one-sidebar-left #pagelines_content #sidebar1{min-height:3000px;}

this doesn't seem to work.
Does anyone have any advice on this?

#2 James B

James B

    Advocate

  • Members

  • 5126 posts

Posted 15 November 2012 - 12:48 AM

Hi there, honestly I'm not sure this can be done. What are you trying to do to the category, there maybe another way round it we can suggest.

Otherwise I'd say try using the category ID instead of the name. eg: .category-1

Use this to find the ID -

Please Login or Register to see this Hidden Content



#3 gayatriom

gayatriom

    Advocate

  • Members

  • 559 posts

Posted 15 November 2012 - 01:22 AM

Hey. The site has two columns. You can see the development version at speedingrabbit.com/justseti .
Trying to set a minimum height for the category product pages.
thanks!

#4 gayatriom

gayatriom

    Advocate

  • Members

  • 559 posts

Posted 15 November 2012 - 03:03 AM

Hey. I found a solution. I think.
I can't target css for category pages, but
I can target the css for templates.



.product .one-sidebar-left #pagelines_content #sidebar1{min-height:850px;}
.product-category .one-sidebar-left #pagelines_content #sidebar1{min-height:3000px;}

So. my product pages now work beautifully! yay!
This is resolved !

#5 Danny

Danny

    Is Awesome!

  • Moderators
  • 17539 posts

Posted 15 November 2012 - 08:06 AM

The topic was marked as resolved.