Problem with custom css

Hi

I got some problem when try to set a custom css on my portfolio post and blog post in @media screen and (max-width: 1220px). When i set .entry-title to padding left and right 20 px it work fine. But when I put same on .entry-content .content it gets effect on hole site. But I cannot see the class on no other place. So why is like this?

Andreas

Hi There,

Thanks for writing in!
We can’t confirm what is the issue without checking the CSS and the page where you have the issue.
Please send us your website/page URL and the CSS you have written with a screenshot of your issue, so that we can suggest you better what could be cause of the issue.

Thanks

Hi

Sorry for the late respons! Here is the url http://beta.ljunginterior.se/nyhet-2/ and here is my css
@media screen and (max-width: 1220px){
.entry-title,.entry-content{padding-left:20px !important;
padding-right:20px !important;}
}

//Andreas

Hi Andreas,

Please try to update your code to:

@media screen and (max-width: 1220px) {
    .single-post .entry-title,
    .single-post .entry-content,
    .single-x-portfolio .entry-title,
    .single-x-portfolio .entry-content {
        padding-left:20px !important;
        padding-right:20px !important;
    }
}

Hope this helps.

HI
It works fine! Thanks!

Have a nice day!

//Andreas

Hi @svenssonmolin,

Happy to hear that.

Feel free to ask us again.

Thanks.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.