Take your website
To the next level
Discover our newly launched customization services and elevate your web projects to new heights.
Delegate tasks, save time, and unlock the power of professional WordPress outsourcing.

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?

  •  4,774
    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.

  •  4,774
    Michael replied

    pls. use following css:

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

     

    6707465710.png
  • jsanchezrod replied

    Thanks Michael

  •  4,774
    Michael replied

    You're welcome!