How to remove dot from "add recipe"? when i try it does not work...
html:
<div id=menu>
<ul>
<li><a href="add_recipe">Add recipe</a></li>
</ul>
</div>
css:
#menu
ul > li
{
list-style-type: none;
}
How to remove dot from "add recipe"? when i try it does not work...
html:
<div id=menu>
<ul>
<li><a href="add_recipe">Add recipe</a></li>
</ul>
</div>
css:
#menu
ul > li
{
list-style-type: none;
}
If you're referring to the "bullet point" marker, then it did work when I ran the code without changing anything. Are you sure it isn't working when you run it? Have you tried clearing the cache to make sure the old script isn't running?
HTML:
<body>
<div id=menu>
<ul>
<li><a href="add_recipe">Add recipe</a></li>
</ul>
</div>
</body>
CSS:
ul li
{
list-style-type: none;
}
but your code as written works fine in chrome
ul
{
list-style-type: none;
}
<div id=menu>
<ul>
<li><a href="add_recipe">Add recipe</a></li>
</ul>
</div>
Your code should work. Check for overrides if it doesn't work (you can use computed styles on the dev tools)
list-style-type can be added to the parent element (<ul> in this case) as child elements (<li>) inherit properties unless they're defined.
#menu ul {
list-style-type: none;
}
<div id=menu>
<ul>
<li><a href="add_recipe">Add recipe</a></li>
</ul>
</div>
More reference: https://developer.mozilla.org/en-US/docs/Web/CSS/list-style-type