I have a situation where I want to space out the elements in html using more than one space. Is there any way other than using multiple
?
HTML:
<td width="10%">
<a href=""><i class="glyphicon glyphicon-envelope"></i></a>View
<a href=""><i class="glyphicon glyphicon-link"></i></a>Append
<a href=""><i class="glyphicon glyphicon-trash"></i></a>Delete
</td>
I figured it out myself: This can be achieved by the following depending on how much space you want:
- single space
  - thin space
  - en space(half the point size of the font)
  - em space(point size of the font)
Reference: http://www.w3.org/MarkUp/html3/specialchars.html
This is what I have done:
<td width="10%">
<a href=""><i class="glyphicon glyphicon-envelope"></i></a>View 
<a href=""><i class="glyphicon glyphicon-link"></i></a>Append 
<a href=""><i class="glyphicon glyphicon-trash"></i></a>Delete
</td>
Hope this helps out.
Using CSS to change the margin
or padding
to space out your elements is generally the accepted answer.
You could also go nuts and use position: absolute
or postion: relative
and space the elements out by playing with the top
and left
properties.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With