Coderap Coderap - 1 year ago 119
CSS Question

Decreasing whitespace in glyphicon-remove text bootstrap

I want the text to be readable (less white space) in the text of the glyphicon that appears after selecting an option in my dropdown, this is what my code for displaying the glyphicon-remove looks like:

<div id="selectedLoanPDivCB" hidden>
Purpose of loan:
<p id="selectedLoanPurposeCB" name="selectedLoanPurposeCB" class="glyphicon glyphicon-remove form-control" value=""></p>

And the result looks like this:

enter image description here

Does anyone have any idea of how to decrease the amount of whitespace between the words?

I tried without the glyphicon, and the text looks fine.. but I really want to use this glyphicon

Answer Source

Try adding word-spacing:0; to the p tag. jsfiddle

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download