我怎么能保持相同格式的无序列表并将其移动到中心位置

时间:2016-07-08 23:06:31

标签: css positioning

enter image description here

我想保持无序列表的格式与附带的屏幕截图相同。但我想把它全部放在中心。我该如何做到这一点?请记住我已经使用了text-align:left。是否还有其他方法可以将左侧元素添加并添加值?

1 个答案:

答案 0 :(得分:0)

<div style="width: 30%; margin-left: 35%">
    <ul>
        <li>Some text</li>
        <li>Some text with other text</li>
        <li>Some text with other text plus more text</li>
    </ul>
</div>

好吗? =)