简体   繁体   中英

Text not wrapping in span/div

I have first time problem like that. Text is not wrapping in span (if I changed it to div too) inside bootstrap col.

CSS word-wrap is not working, i have no idea what to do. Span is display inline-block with width: 100%

This is my structure:

<div class="col-4 dropdown-item-container">
  <a class="z-depth-1 dropdown-item" href="#">
     <img class="dropdown-image" src="img/cat8.jpg" />
     <span>System do wykonywania połączeń DOMINO</span>
  </a>
</div>

And it's looks like that:

在此处输入图像描述

I found problem, in bootstrap class.dropdown-item have set white-space: nowrap;

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM