I want to automatically add the HTML character »
(») to the left of each li
element.
What would be the best practise?
I want the HTML to be:
<ul> <li>item 1</li> <li>item 2</li> <li>item 3</li> </ul>
And it should display:
» item 1 » item 2 » item 3
Select a cell next to the numbers you want to sum, click AutoSum on the Home tab, press Enter, and you're done. When you click AutoSum, Excel automatically enters a formula (that uses the SUM function) to sum the numbers.
Put the mouse pointer over the bottom right-hand corner of the cell until it's a black plus sign. Click and hold the left mouse button, and drag the plus sign over the cells you want to fill. And the series is filled in for you automatically using the AutoFill feature.
I found the above answer didn't work for me, but the following does:
li:before{ content: "\00BB"; }
This uses the hexadecimal code for » instead.
A nice hexadecimal converter can be found here.
Hope this helps someone :)
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