...

View Full Version : can't align right



alaios
09-21-2004, 07:50 AM
In the folowing html code.... have 3 columns... The left must be aligned right.... the middle must be aligned center... and the right must be aligned in the left.... The problem is that i can't change the alignment of the first column. The other two (center,right) are justfine...
Look at the code///and ask me if u want to give more explanations..
Thx a lot

<table bgcolor="" height="10" width="300" border="1" align="center">
<tr valign="top">
<td height="1" width="100" align="right" valign="top">
<div align="right"><a class="nav_bar_link" href="index.php?option=com_events&task=view_day&year=2004&month=09&day=21&Itemid=1">Text</a>
</div>
</td>
<td height="1" align="center" valign="bottom">
<form name="ViewSelect" action="index.php" method="post">
<input type="hidden" name="Itemid" value="1">
<input type="hidden" name="option" value="com_events">
<input type="hidden" name="year" value="2004">
<input type="hidden" name="month" value="09">
<input type="hidden" name="day" value="21">

<select name="task" onChange="submit(this.form)" style="font-size:10px;">
<option value="view_day" selected="selected">Δείτε άνα μέρα</option>
<option value="view_week">Δείτε άνα εβδομάδα</option>
<option value="view_month">Δείτε άνα μήνα</option>
<option value="view_year">Δείτε άνα χρόνο</option>
<option value="view_cat">Δείτε άνα κατηγορία</option>
<option value="view_search">Αναζήτηση</option>
</select>

</form>
</td>
<td height="1" width="100" align="left" valign="top">
<a class="nav_bar_link" href="index.php?option=com_events&task=view_last&year=2004&month=09&day=21&Itemid=1">Γεγονότα αυτού του μήνα</a>
</td>
</tr>
</table>

Roy Sinclair
09-21-2004, 04:00 PM
It must be something else in your page outside of the code you posted causing the problem because I can put your code into a simple page and it works just fine:



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
<head>
<title>Testing</title>
</head>
<body>
<table bgcolor="" height="10" width="300" border="1" align="center">
<tr valign="top">
<td height="1" width="100" align="right" valign="top">
<div align="right">
<a class="nav_bar_link" href="index.php?option=com_events&task=view_day&year=2004&month=09&day=21&Itemid=1">Text</a>
</div>
</td>
<td height="1" align="center" valign="bottom">
<form name="ViewSelect" action="index.php" method="post">
<input type="hidden" name="Itemid" value="1">
<input type="hidden" name="option" value="com_events">
<input type="hidden" name="year" value="2004">
<input type="hidden" name="month" value="09">
<input type="hidden" name="day" value="21">
<select name="task" onChange="submit(this.form)" style="font-size:10px;">
<option value="view_day" selected="selected">????? ??? ????</option>
<option value="view_week">????? ??? ????????</option>
<option value="view_month">????? ??? ????</option>
<option value="view_year">????? ??? ?????</option>
<option value="view_cat">????? ??? ?????????</option>
<option value="view_search">?????????</option>
</select>
</form>
</td>
<td height="1" width="100" align="left" valign="top">
<a class="nav_bar_link" href="index.php?option=com_events&task=view_last&year=2004&month=09&day=21&Itemid=1">???????? ????? ??? ????</a>
</td>
</tr>
</table>
</body>
</html>



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum