Tagged: devin-docs
How can I use an icon font (then Entypo checkmark for example) in an unordered list, wherein the items would be automatically indented.
I’ve been currently pulling this off using shortcodes, but it’s a pain. I was thinking maybe a pseudo class could work, but I’m not sure how to specify the icon as the before content. Thanks for any help!
Hey!
Try adding this code to the Quick CSS:
.content ul li {
list-style: none !important;
}
.content ul{
padding: 0 !important;
}
.content ul li:before {
content: "\2713";
font-family: "entypo";
margin-right: 5px;
}
If you want to use another icon, refer to this character map:
http://www.entypo.com/characters/
Cheers!
Josue
Hi!
I was looking for the same solution, so I used the code as well and styled it a little bit more:
.content ul li:before {
content: “\2713”;
font-family: “entypo”;
font-size: 2em;
line-height: 1;
margin-right: 10px;
color: #94BD26;
}
All perfect, but then I scrolled down in my post and I saw this: https://dl.dropboxusercontent.com/u/13613026/List_SoMe_Icon.png
Somewhere, something went wrong and I have no idea where!
Can you help me?
Sincerely,
Morticka
Hi!
Try adding this too:
.av-share-box li:before {
content: "" !important;
position: absolute !important;
}
Cheers!
Josue
Hi!
The syntax is just a bit off:
.av-share-box li:before {
content: '' !important;
position: absolute !important;
}
Regards,
Devin
Hi!
I’m not sure if I understand the problem but I think you want to remove the dash – ( & #8211; ) from the Tweet content? Keeping the dash directly is not possible because it’s not a valid url charachter and thus Enfold converts it to an entity which is & #8211;. You can try to use a minus ( – ) instead or replace the dash with another character.
Regards,
Peter