I know that I can just use the image for this, but who in their right mind really wants to?
I am trying to find a neat way to change the prefix color of a list of items in an unordered list.
I can do this quite simply with the :before selector. (Yes, I know about 7th, Iβm lucky, it doesnβt matter).
eg.
.ul1 li { list-style-type:none; } .ul1 li:before, .ol1 li:before { content:"\25CF"; color:#F68A39; font-weight:bold; font-size:18px; text-align:right; padding-right:6px; width:10px; }
The problem is that the contents of my list will now span the contents of :before . Is there any way to prevent this?
Here are some markups to start with .. Greetings!
<ul class="ul1"> <li> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only </li> <li> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only </li> <li> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only </li> <li> Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only </li> </ul>
source share