Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1167828

    Hello,
    in my Enfold site i have a lot of columns with a list. The list has only one style-type, the middle round dot (·)
    I want instead of this round dot , a so-called “black small square” ▪
    But then, without ul and list, the text in more lines is not left aligned.
    The html-code only accepts <span style=”list-style-type: square;”> , but it shows the “big” square, not the “black small square”-one.
    Can i change it with some CSS? Or do you have another solution?
    Thanks,
    Hans

    • This topic was modified 5 years ago by JAZ50.
    #1167931

    Hey JAZ50,

    Could you please give us a link to your website, we need more context to be able to help you.

    Could you please attach a mockup of what you’re trying to achieve?

    Best regards,
    Victoria

    #1167964
    This reply has been marked as private.
    #1168041

    Hi Hans,

    Thanks for the screenshots. We need to be able to inspect the element in question in order to give you accurate CSS. If you want to have a go ad it yourself then you can refer to this: https://www.w3schools.com/CSSref/pr_list-style-type.asp

    Best regards,
    Rikard

    #1168070
    This reply has been marked as private.
    #1168595

    Hi,
    Sorry for the late reply, to use the list option in the text block element and always see the small square, please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    ul.disc, .entry-content-wrapper ul {
        list-style: square outside !important; 
    }

    this will be for your whole site, if you only want it for some pages then please let us know.
    2019-12-22-121301

    Best regards,
    Mike

    #1168649
    This reply has been marked as private.
    #1168692

    Hi,
    Please try this code in the General Styling > Quick CSS field or in the WordPress > Customize > Additional CSS field:

    ul.disc, .entry-content-wrapper ul {
      list-style: none !important; 
      margin-left: 0;
      padding-left: 0;
    }
    
    .entry-content-wrapper ul li {
      padding-left: 1em;
      text-indent: -1em;
    }
    
    .entry-content-wrapper ul li:before {
      content: "▪";
      padding-right: 5px;
      color:#000 !important; 
    }

    I had to include the character in the code because the hex code doesn’t work for this method. I also included the color so the theme doesn’t apply it’s own colors.
    Please clear your browser cache and check.

    Best regards,
    Mike

    #1168801
    This reply has been marked as private.
    #1168990

    Hi JAZ50,

    In Mike’s code it is black, did you change it to green in the css?

    Best regards,
    Victoria

    #1169189
    This reply has been marked as private.
    #1169280

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    For your information, you can take a look at Enfold documentation here
    For any other questions or issues, feel free to start new threads in the Enfold forum and we will gladly try to help you :)

    Best regards,
    Mike

Viewing 12 posts - 1 through 12 (of 12 total)
  • The topic ‘Enfold Avia Builder Text Block list-style-type’ is closed to new replies.