How to get lettering closer together and add a <br>?
Posted: Sat Mar 14, 2009 7:31 pm
Hi
The programmer I'm working with used the code below which looks like the right table of hotel names on:
http://www.bluehippotravel.com/spahotels.php
But the hotel names are all too close together. Is there a way to get the city/state/country closer to the hotel name, and put a <br> after the city state country? When I put it in the place that I would think would be obvious, it just puts a ton of space before the firrst name. I tried them in both spots after the last two </tr>, both places and each one..ton of space before first name.
Any help would be appreciated!
L
<?php
echo '<table class="oneHotelRightSideListName">';
for ($i=0;$i<$_SESSION['ukupnoHotela'];$i++)
{
echo '<tr><td class="oneHotelRightSideListName"><a href="onehotelpage.php?id='.$_SESSION['idHotela'][$i].'" class="oneHotelRightSideListName">'.$_SESSION['imeHotela'][$i].'</a></td></tr>';
if ($_SESSION['hotelCountry'][$i]=='US' or $_SESSION['hotelCountry'][$i]=='us')
{
echo '<tr><td class="oneHotelRightSideListRest">'.$_SESSION['hotelCity'][$i].', '.$_SESSION['hotelState'][$i].', US</td></tr>';
}
else
{
echo '<tr><td class="oneHotelRightSideListRest">'.$_SESSION['hotelCity'][$i].', '.$_SESSION['hotelCountry'][$i].'</td></tr>';
}
}
echo '</table>';
?>
The programmer I'm working with used the code below which looks like the right table of hotel names on:
http://www.bluehippotravel.com/spahotels.php
But the hotel names are all too close together. Is there a way to get the city/state/country closer to the hotel name, and put a <br> after the city state country? When I put it in the place that I would think would be obvious, it just puts a ton of space before the firrst name. I tried them in both spots after the last two </tr>, both places and each one..ton of space before first name.
Any help would be appreciated!
L
<?php
echo '<table class="oneHotelRightSideListName">';
for ($i=0;$i<$_SESSION['ukupnoHotela'];$i++)
{
echo '<tr><td class="oneHotelRightSideListName"><a href="onehotelpage.php?id='.$_SESSION['idHotela'][$i].'" class="oneHotelRightSideListName">'.$_SESSION['imeHotela'][$i].'</a></td></tr>';
if ($_SESSION['hotelCountry'][$i]=='US' or $_SESSION['hotelCountry'][$i]=='us')
{
echo '<tr><td class="oneHotelRightSideListRest">'.$_SESSION['hotelCity'][$i].', '.$_SESSION['hotelState'][$i].', US</td></tr>';
}
else
{
echo '<tr><td class="oneHotelRightSideListRest">'.$_SESSION['hotelCity'][$i].', '.$_SESSION['hotelCountry'][$i].'</td></tr>';
}
}
echo '</table>';
?>