How to force Twitter Bootstrap .dl-horizontal DT content to wrap instead of truncate?

后端 未结 4 1417
被撕碎了的回忆
被撕碎了的回忆 2021-02-02 10:04

Bootstrap has great horizontal definition list styling, but I want the DT content to wrap, not be truncated.

I know on their base.css page they say:

4条回答
  •  爱一瞬间的悲伤
    2021-02-02 10:20

    Give an id to your dl:

    Then add this to your css :

    #freelance dt {
        overflow: visible;
        width: 170px !important;
        margin-right: 8px;
    }
    

    Change width and margin if needed.

提交回复
热议问题