• Resolved webdeveloper777

    (@webdeveloper777)


    Hi,
    I am trying to use css to reduce the lines in between text coming from the sidebar. I have this css:

    
    ul.wp-block-latest-posts__list.is-style-default.tw-heading-size-small.wp-block-latest-posts, li::after {
    line-height: 0.5cm;
    	background-color: red;
    }
    

    the background colour takes effect, as does padding and margin properties but any attempt to alter the text such as line height or font size does not have any effect. I am using the twentig theme. Can someone please help?

Viewing 1 replies (of 1 total)
  • Plugin Author Twentig

    (@twentig)

    Hi,

    It seems that your CSS code is overridden by other CSS. So you can add the !important rule to make sure that you code override all other stylings:

    ul.wp-block-latest-posts__list.is-style-default.tw-heading-size-small.wp-block-latest-posts, li::after {
    	line-height: 0.5cm !important;
    	background-color: red;
    }

    Hope that helps,
    Tom

Viewing 1 replies (of 1 total)
  • The topic ‘help with custom css to sidebar’ is closed to new replies.