you can comment out white-space: nowrap;
from .dl-horizontal dt
block if you want to wrap content in all the dt
if you want to wrap content for a single dt then add inline style='white-space: normal;'
to that specific dt
http://stackoverflow.com/questions/12764332/how-to-force-twitter-bootstrap-dl-horizontal-dt-content-to-wrap-instead-of-trun
http://stackoverflow.com/questions/20363545/text-truncated-in-bootstrap-dl-horizontal-element
7
|
you can comment out if you want to wrap content for a single dt then add inline |
I have a website that uses Bootstrap v3.0. In one of the views I need to show 6 pair of key-value items and I was using dl-horizontal element. My problem with this list is that my keys have different lenghts so when I have a long key, the text is truncated. It would be nice to have the text divided in two or more lines. Is this possible? Is there a better element to do this? I also have a problem when the text is too short. In this cases I have a lot of space to the left. Here is an example: | |||||||||||||
|
3
|
EDIT : Added You issue may come from your container. You can user
|
7
|
you can comment out if you want to wrap content for a single dt then add inline |