Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    Regular Coder
    Join Date
    Aug 2002
    Posts
    433
    Thanks
    3
    Thanked 0 Times in 0 Posts

    can't align right

    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>

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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:

    Code:
    <!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>
    Check out the Forum Search. It's the short path to getting great results from this forum.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •