0
Welcome Guest! Login
0 items Join Now

CSS Specificity & K2 Items

  • CSS Specificity & K2 Items

    Posted 11 years 9 months ago
    • I am trying to add a modification into my custom.css. I know it is loading becasue the page source indicates such. I'm wanting the titles of the k2 items to be a different color. This is the code I've tried but I must have something totally off with the specificity?
      #k2Container
      .itemListView
      .itemList
      #itemListLeading
      .itemContainer itemContainerLast
      .catItemView groupLeading
      .catItemHeader
      h3 class {
      color: #1EB53A
      }
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: CSS Specificity & K2 Items

    Posted 11 years 9 months ago
    • Please post an URL to your site so we can take a look
    • Check my services at: Mihha-Vision
  • Re: CSS Specificity & K2 Items

    Posted 11 years 9 months ago
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: CSS Specificity & K2 Items

    Posted 11 years 9 months ago
    • Try this
      body #k2Container.itemListView .itemList #itemListLeading h3 {
      color: #1EB53A !important;
      }
       
      body #k2Container.itemListView .itemList #itemListPrimary h3 {
      color: #1EB53A;
      }
    • Check my services at: Mihha-Vision
  • Re: CSS Specificity & K2 Items

    Posted 11 years 9 months ago
    • That's not doing it for me. What am I doing wrong?
    • Who?'s Avatar
    • Who?
    • Preeminent Rocketeer
    • Posts: 25562
    • Thanks: 613
    • Joomla freelancer

    Re: CSS Specificity & K2 Items

    Posted 11 years 9 months ago
    • Please put code I suggested in a custom css file

      This is how you create a custom CSS file...
      www.gantry-framework.org/documentation/j...custom_stylesheet.md

      When we release upgrades template files will change and you will have to reapply all your changes again (that's if you can remember where they all are). If you keep your changes in a separate Custom CSS file you'll have no issues upgrading.
    • Check my services at: Mihha-Vision

Time to create page: 0.067 seconds