August 13th, 2013, 02:05 AM
Add space in line of text
I need to add extra space in a line of text.
I could use a spacer gif - or multiple but I feel I should be able to do this with css.
I've tried using a span - which stays on the line but margins, box width, etc dont work;
I've tried using a <div> with display: inline
and it works except the div starts on a new line so thats no good either.
I want a solution thats SIMPLE and ELEGANT and cross-browser compatible.
Why is it SO HARD?
August 13th, 2013, 10:45 AM
Welcome to DevShed Forums, john errington.
Please show us your code and what you want it to look like.
The width and height properties do not apply to (non-replaced) inline elements.
*shrugs* Most things are hard until you know how.
August 14th, 2013, 12:27 AM
thanks for the hint
<p>text here<span class="space"></span>more here
works but only if I use display: inline-block;