I want to show disc bullet points in my horizontal list.
I know that once we define in CSS: display: inline;
, the class definition: list-style-type: disc
does not work.
So this has been my solution:
<ul>
<li>· EN</li>
<li>· ES</li>
<li>· ES</li>
<li>· DE</li>
<li>· FR</li>
</ul>
I have put the symbol disc bullet point manually in my horizontal list and then I have declared that in my head section: <meta http-equiv="content-type" content="text/html;charset=utf-8" />
.
In My coda editor preview they look fine, but if i try to browser it I get � this.
Why? How can I figure it out the problem? Otherwise, what is the best solution to show disc bullet point in a horizontal list?
Instead of choosing display:inline
for your li
you could keep them as blocks and do this:
li {
float:left;
}
Then you could play with the margins to space them how you need.
Try display:inline-block
CSS
ul li{
display:inline-block;
}
To work in IE6 and IE7:
CSS
ul li{
display:inline-block;
zoom:1;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With