In my sandbox here:
.thunderbolt li:nth-child(1):before {content: "\26A1 ";}
.thunderbolt li:nth-child(2):before {content: " ";}
.thunderbolt li:nth-child(3):before {content: " ";}
.thunderbolt li:nth-child(4):before {content: " ";}
.thunderbolt li:nth-child(5):before {content: " ";}
.thunderbolt li:nth-child(6):before {content: "\2685";}
<div>
<ul class="thunderbolt">
<li>ThunderBolt devices only get recognized by BootCamp on boot.</li>
<li>If you unplug your ThunderBolt device while using Windows, you'll have to shut down then reboot your OS to get it recognized again.</li>
<li>Disable <b>Fast Startup </b>in Windows 8/10.</li>
<ul>
<li>Also try holding <b>Shift </b>when you click <b>Start </b>> <b>Shut down</b>.</li>
</ul>
<li>Wait a solid chunk of seconds on the login screen after boot to allow BootCamp to configure Thunderbolt devices.</li>
<li><b>Sleep </b>simply does not work in BootCamp with a ThunderBolt device connected.</li>
</ul>
</div>
I want the unicode characters to replace the bullet points. Instead, the characters are just showing up alongside the bullet points, in-line with the text.
Also, I don't want the .thunderbolt
class to apply to the nested <ul>
--I just want that to be a standard bullet point.
I've tried .thunderbolt list-style: none
but all that did was make my thunderbolt symbol disappear.
Also, the resulting webpage displayed skips the character in .thunderbolt li:nth-child(4):before {content: " ";}
for the 4th child and displays the character from .thunderbolt li:nth-child(5):before {content: " ";}
instead. It seems the code treats the one nested <li>
as if it were the 4th child in the parent <ul>
.
- How do I replace the bullent points in a
<ul>
with a unicode character? - How do I tell the CSS to skip nested
<ul>
's when applyingnth-child(n)
properties?