Forums

Unordered list bullets now showing up (5 posts)

  1. nickandrea19
    Member
    Posted 1 year ago #

    Here is our webpage: http://pramainstitute.org/uncategorized/10-day-fall-yoga-detox-retreat/

    I can't get bullets to show up on an unordered list (ul), so I manually put in asteriks instead. I tried removing
    ol, ul { list-style:none; }
    in the stylesheet but then bullets starting showing up above and below my links bar at the top of the page.

    Help? I want bullets to show up in ul on the posts but not on the links bar.

    Thanks.

  2. alchymyth
    The Sweeper
    Posted 1 year ago #

    then use a more specific style for the lists in post content:

    for instance:
    .entry-content ul { list-style-type: disc; margin-left:15px; }

    add this to the end of the stylesheet of your theme.

  3. nickandrea19
    Member
    Posted 1 year ago #

    Right on. Thanks! It worked. But why would it not be in .post ul?

  4. alchymyth
    The Sweeper
    Posted 1 year ago #

    But why would it not be in .post ul?

    can'y tell for sure; probably to do with css priorities.

    .post ul { } might have a lower priority than .entry-content ul { };
    if the bullets were set to 'none' in .entry-content ul - then the style with .post ul might not be 'strong' enough to overwrite the previous set style.

    general, as a last resort, you can 'force' a style by adding !important;
    example:

    .post ul { list-style-type: disc!important; }

  5. nickandrea19
    Member
    Posted 1 year ago #

    Ah ok. So then in every case where there's "content" .entry-content will override .post ul?

Topic Closed

This topic has been closed to new replies.

About this Topic