How do I create a Unordered list in html with sub

2019-08-16 18:43发布

I want to know how to accomplish something similar to this in wordpress. Any suggestions? maybe a sample code.

enter image description here

Can you show me an example how to apply it to the sub bullets?

3条回答
做自己的国王
2楼-- · 2019-08-16 19:23
男人必须洒脱
3楼-- · 2019-08-16 19:33

Use li:before { content: ...; }

HTML

<ul>
    <li>Disater Assistance Center Manager
        <ul id="sub">
            <li>San Jaun</li>
        </ul>
    </li>
</ul>

CSS

#sub { list-style:none; }
#sub li:before {
    content: "\2192 \0020";
}

JSFiddle

Other special characters can be found here.

查看更多
可以哭但决不认输i
4楼-- · 2019-08-16 19:36

You could use li:before{ content:"....";} to make an arrow? Like this:

<ul>
    <li>Disaster</li>
    <ul>
        <li>stuff</li>
        <li>Stuff2</li>
    </ul>
</ul>

CSS:

ul ul li:before {

         content: "\2192 \0020";
}
ul ul {
    list-style: none;
}

See it in function here, on this fiddle: http://jsfiddle.net/f9AzK/

查看更多
登录 后发表回答