• Resolved ambitiouslyalexa

    (@ambitiouslyalexa)


    Hello! Popping in again.

    Is there a CSS for making lists in posts a certain font size? My general font size site-wide is 20px, but for some reason lists (as in, numbered lists and bulleted lists) do not conform to that setting.

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there!

    Sure thing, this should work where font sizes aren’t explicitly set in the editor:
    .entry-singular .entry-content li { font-size: 20px; }

    If you need anything else, just let us know! ??

    Thread Starter ambitiouslyalexa

    (@ambitiouslyalexa)

    Is there a code for changing the font size of lists even when they are explicitly set in editor? I have several posts with lists manually set to 18px in the past, so was wondering if I could override those!

    It’s sometimes frowned on, but you can sneak an “!important” in there and it’ll override those too, like this:

    .entry-singular .entry-content li {
        font-size: 20px !important;
    }

    Let us know if you have any trouble with it!

    Thread Starter ambitiouslyalexa

    (@ambitiouslyalexa)

    Yay, that worked! Thank you! Is there a reason why it’s frowned upon?

    Nothing too serious, just a best practice type thing mostly for maintainability. ??

    Glad it worked!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Changing font size of lists in posts’ is closed to new replies.