Centering Bullets On A Centered List

前端 未结 4 1108
滥情空心
滥情空心 2020-12-30 23:28

Example - http://jstn.info/html.html - link rot, example no longer available.

Notice the text is centered, but the bullet points themselves are not.

4条回答
  •  再見小時候
    2020-12-31 00:13

    You asked the same question at Centering

      + Keeping
    • 's Aligned and i already answered you.

      Give your div a class name center. Assuming your div width is 200px, margin:0 auto will center and text-align:left will align the text to the left while maintaining its centering due to margin auto.

      .center{
          width:200px;
          margin:0 auto;
          text-align:left;
      }
      

      Check working example at http://jsfiddle.net/8mHeh/1/

提交回复
热议问题