Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #2388898
CSS in page (max-height)
Closed

Comments

  • jsanchezrod started the conversation

    Hello,
    I need to modify max-height: 80px in Blog Extended Grip element in one page, but including this specific CSS in the page it does not consider it and uses the original CSS. 

    .version-new.news-grid .portfolio-item .caption .description {
        display: block;
        max-height: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        padding: 0;
        margin: 18px 0 0 0;
    }

    Is there any way to incorporate this modification in the CSS to avoid cutting the description of the posts?

  •  5,055
    Michael replied

    HI!

    Use СSS code with a higher priority.

    https://marksheet.io/css-priority.html

  • jsanchezrod replied

    I understand that, but how do I assign an id to the description to make it a higher priority?
    The CSS of the theme is assigned by classes, if I want to prioritize my rules I must assign them by ID, how? I don't see how to customize the Blog Extended Grid.

  •  5,055
    Michael replied

    pls. use following css:

    body .version-new.news-grid .portfolio-item .caption .description {
        max-height: 80px;
    }

     

    6707465710.png
  • jsanchezrod replied

    Thanks Michael

  •  5,055
    Michael replied

    You're welcome!