Sublime directory Surf the web anonymous Pagerank Monitor


Simple HTML Question

Big Mountain
Sun 10 February 2008, 02:21 pm GMT +0100
Hi.

In a table data I have four lines of text each line separated by a <br>
The text are different font sizes. The issue I am having is that the lines have space between them above and below. How do I get the lines of text closer together using simple html?

text line 1
|
(this space)
|
text line 2

Regards

Nikolas
Sun 10 February 2008, 03:14 pm GMT +0100
You can use the line-height css property

senthil_sivanath
Thu 10 April 2008, 07:49 pm GMT +0200
Instead of using <br> tag use the code below. If you want to increase the spacing increase the cellspacing
<table cellspacing='0%' cellpadding='0%' border='0%'>
<tr><td>Line 1 </td></tr>
<tr><td>Line 1 </td></tr>
<tr><td>Line 1 </td></tr>
<tr><td>Line 1 </td></tr>
</table>

YMC
Thu 10 April 2008, 08:44 pm GMT +0200
While adding a nested table would work, why add the level of complexity it requires when Nickolas' solution is the easier and more favorable one to the search engines?

azeemi
Tue 16 September 2008, 10:59 am GMT +0200
generating css class for each line define heights in css and apply it.

Archive for SMF v1.00 by N.P. Valid XHTML 1.0 Transitional