-4

Edit

The html and css for the site I am working on can be found at http://http://new.oranaschool.com/

/Edit

I am trying to remove the bullets showing in the top horizontal menu (Home...Contact). I have tried the advice given in Removing "bullets" from unordered list <ul> but still the bullets persist.

Can someone have a look at the CSS and tell me what I need to add to which CSS class? This has been driving me nuts now for a couple of hours.

Community
  • 1
  • 1
TheEdge
  • 9,291
  • 15
  • 67
  • 135

5 Answers5

1

You can try this

<html>
<head>
<style type="text/css">
div.ui-menu li {
    list-style:none;

}
ul
{
    list-style-type:none;
    padding:0px;
    margin:0px;
}
li
{
   display:inline;
    padding-left:14px;
}
</style>
</head>

<body>

<div class="ui-menu">
<ul>
<li>Coffee</li>
<li>Tea</li>
<li>Coca Cola</li>
</ul>
</div>

</body>

</html>
1

Please see the fiddle

https://jsfiddle.net/psgou7bt/2/

HTML

  <ul class="no-bullets">
    <li>item1</li>
    <li>item2</li>
    <li>item3</li>
    </ul>

Css

  .no-bullets, .no-bullets li {
        list-style-type:none;

    }

If this don't work for you, then you have some conflicts in your code

FrontDev
  • 837
  • 5
  • 19
0

I found the issue you are facing on the website. You can remove the bullets using below CSS.

.navigation ul.sf-menu > li::before {
    background: none !important;
}

Or remove the background completely from your stylesheet.

Xahed Kamal
  • 2,203
  • 1
  • 20
  • 41
  • Can you have a look at the URL I have posted? As you will see there are numerous CSS classes in play. Adding suggestions to .navigation ul.sf-menu has done nothing to improve things. – TheEdge Oct 12 '15 at 08:04
  • @TheEdge, Add your HTML at least. Otherwise, any of our solution might not work on your html. – Xahed Kamal Oct 12 '15 at 08:09
  • The HTML can be found at the posted URL namely http://new.oranaschool.com and then View Source – TheEdge Oct 12 '15 at 08:13
0

You can remove bullets by using list-style-type to none on the CSS for the <ul> element, for example:

ul
{
    list-style-type: none;
}
halfer
  • 19,824
  • 17
  • 99
  • 186
Amrinder Singh
  • 5,300
  • 12
  • 46
  • 88
0

remove background-image from this

.navigation ul.sf-menu > li:before {
     background: url(../images/menu_bull.png) 0 0 no-repeat; /** remove this */
}

and if you don't want to edit the original code add

.navigation ul.sf-menu > li:before {
         background: url('');
    }
Domain
  • 11,562
  • 3
  • 23
  • 44