A simple question but large impact on appearance.
I want text indented from cell border and have tried style=text-indent: 4px
(not formatted so it displays properly here) but while the first line is indented, the lines after the <br>
tags are not indenting. Please help. I need to use div because of some Javascript. Here is flawed code:
<td>
<div id="navbar" style="text-indent:4px"><b>View by:</b><br>
<a href="search.php?cat=pop">Popular</a><br>
<a href="search.php?cat=trend">Trending</a><br>
</div>
</td>
text-indent
is only supposed to touch the first line. Use margin
(or margin-left
or padding
or etc) if you want to adjust the entire block.
Try adding paddding to element, that holds your text you want to indent.
<td style="padding:5px;">text</td>
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