Hiding the list symbol

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Rabso
    Member
    • Oct 2008
    • 33
    • 5.1.x

    Hiding the list symbol

    Hi,

    I have small issue; I have added the Static HTML module and put the following code:

    HTML Code:
    <div>
    <ul style="list-style:none">
    <li>Test 1</li>
    <li>Test 2</li>
    <li>Test 3</li>
    </ul>
    </div>
    As you see, I don't want the list symbol "dot or any" to be appeared but for some reason it keeps appearing. any advise?
  • Zachery
    Former vBulletin Support
    • Jul 2002
    • 59097

    #2
    Add the following code to your css_additional.css template:

    Code:
    .mylists li
    {
     list-style:none !important;
    }
    Then change your code to


    HTML Code:
    <div>
    <ul class="mylists">
    <li>Test 1</li>
    <li>Test 2</li>
    <li>Test 3</li>
    </ul>
    </div>

    Comment

    • glennrocksvb
      Former vBulletin Developer
      • Mar 2011
      • 4021
      • 5.7.X

      #3
      You can put the CSS in the HTML Module itself so you don't have to put it separately and forget it later on.

      HTML Code:
      <style>
      .custom-html-widget .restore ul > li {
           list-style: none;
      }
      </style>
      
      <div>
          <ul>
              <li>Test 1</li>
              <li>Test 2</li>
              <li>Test 3</li>
          </ul>
      </div>

      Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

      Comment

      • Rabso
        Member
        • Oct 2008
        • 33
        • 5.1.x

        #4
        thanks guys, it works great now

        Comment

        Related Topics

        Collapse

        Working...