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

后端 未结 4 1488
被撕碎了的回忆
被撕碎了的回忆 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:33

    add an CSS overwrite after the bootstrap CSS references

    .dl-horizontal dt 
    {
        white-space: normal;
        width: 200px; 
    }
    

提交回复
热议问题