html - Allow Bootstrap inline code block to break? -


i'm working on blaze, app uses se api grab recent content. works great finding naas, there's 1 problem. when has put whole bunch of code or entire sentence in inline code block, happens:

enter image description here

when should (non-so site):

enter image description here

essentially, inline code blocks aren't breaking, , pushing td out right. html generated:

<tr>     <td style="vertical-align:top" class="col-md-1">         <div class="score">             <h2 style="color:rgba(0,0,0,0.6); pull:right">0</h2>         </div>     </td>     <td class="">         <div class="post col-md-9">             <h3><a href="http://stackoverflow.com/questions/22561506/how-can-i-insert-php-into-a-webpage-using-javascript/22561707#22561707">how can insert php webpage using javascript</a></h3>             <hr>             <span class="post-body" style="color:rgba(70,70,70,1)">                                     <p><code>is possible insert php code webpage using javascript after page has loaded?</code> simple answer no. page has been rendered, way change using javascript running within user's browser.</p>                 ...             </span>             <p style="color:grey; float:right">posted <a href="http://stackoverflow.com/users/2155068/mjrkusanagi">mjrkusanagi</a> <span>a minute ago</span></p>         </div>     </td> </tr> 

this non-bootstrap css i'm using:

<style>   img    {       max-width:100%;   }   html, body    {       height: 100%;   }   #wrap    {       min-height: 100%;       height: auto;       margin: 0 auto -50px;       padding: 0 0 50px;   }   #footer    {       height: 50px;       background-color: clear;        border-top:1px dashed rgba(0,0,0,0.2);   }   .navbar .navbar-nav    {       display: inline-block;       float: none;   }   .navbar .navbar-collapse    {       text-align: center;   }   .flag-button:hover    {       background-color:red;        color: white   } </style> 

does have idea how either (a) make td stronger inline code blocks, or (b) allow code blocks wrap?

bootstrap sets code whitespace no-wrap default. can override overriding value allows wrapping.

http://jsfiddle.net/nnry2/

css

code {     white-space: normal;     } 

Comments

Popular posts from this blog

java - WrongTypeOfReturnValue exception thrown when unit testing using mockito -

php - Magento - Deleted Base url key -

android - How to disable Button if EditText is empty ? -