By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,992 Members | 967 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,992 IT Pros & Developers. It's quick & easy.

table width already fixed??

100+
P: 127
Below is my coding for the login and ticker. I put both of it in table which width=166 and height=188, but the size of both table was not same, one is wider and one is narrow...My problem now is when i put both table together in one column, one look wider and the other look narrow, it is no nice...
What should i do to make both of it same width?? Thanks...


alumni.php
Expand|Select|Wrap|Line Numbers
  1. <form action="alumniLogin.php" method="POST">
  2.   <TABLE width="166" height="188" cellPadding=0 cellSpacing=0 bgcolor=#8870AB style="BORDER-RIGHT: #9B77CB 1px double; PADDING-RIGHT: 0px; BORDER-TOP: #9B77CB 1px double; PADDING-LEFT: 0px; FONT-WEIGHT: bold; FONT-SIZE: 10px; BACKGROUND-IMAGE:  PADDING-BOTTOM: 0px; MARGIN: 0px; VERTICAL-ALIGN: top; BORDER-LEFT: #9B77CB 1px double; WIDTH: 140px; COLOR: #000000; PADDING-TOP: 0px; BORDER-BOTTOM: #9B77CB 1px double; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none" >
  3.     <tr align="center" bgcolor="#BA5179"> 
  4.       <td width> <center>
  5.           <font color="#FFFFFF" size="3" face="Verdana"><strong>ALUMNI LOGIN</strong></font> </center>
  6.         </td>
  7.     </tr>
  8. </table> 
  9.    </form>

ticker.php
Expand|Select|Wrap|Line Numbers
  1. <TABLE width="166" height="188" cellPadding=0 cellSpacing=0 bgcolor=#8870AB style="BORDER-RIGHT: #9B77CB 1px double; PADDING-RIGHT: 0px; BORDER-TOP: #9B77CB 1px double; PADDING-LEFT: 0px; FONT-WEIGHT: bold; FONT-SIZE: 10px; BACKGROUND-IMAGE:  PADDING-BOTTOM: 0px; MARGIN: 0px; VERTICAL-ALIGN: top; BORDER-LEFT: #9B77CB 1px double; WIDTH: 140px; COLOR: #ffffff; PADDING-TOP: 0px; BORDER-BOTTOM: #9B77CB 1px double; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none" >
  2. <TBODY>
  3. <TR>
  4.       <TD style="BORDER-RIGHT: #9B77CB 1px double; PADDING-RIGHT: 4px; BORDER-TOP: #9B77CB 1px double; PADDING-LEFT: 4px; FONT-WEIGHT: bold; FONT-SIZE: 10px;  MARGIN: 0px; VERTICAL-ALIGN: top; BORDER-LEFT: #9B77CB 1px double; COLOR: #000000; LINE-HEIGHT: normal; PADDING-TOP: 4px; BORDER-BOTTOM: #9B77CB 1px double; BACKGROUND-REPEAT: repeat-x; FONT-STYLE: normal; FONT-FAMILY: Verdana; HEIGHT: 22px; TEXT-DECORATION: none;    FONT-SIZE: 11px; COLOR: #FFFFFF; FONT-FAMILY: Verdana "><B><FONT color=#FFFFFF size="2" face="Verdana">&nbsp;UMS 
  5.         Career News</FONT></B></TD>
  6.     </TR>
Feb 23 '07 #1
Share this Question
Share on Google+
4 Replies


Expert 100+
P: 1,892
Below is my coding for the login and ticker. I put both of it in table which width=166 and height=188, but the size of both table was not same, one is wider and one is narrow...My problem now is when i put both table together in one column, one look wider and the other look narrow, it is no nice...
What should i do to make both of it same width?? Thanks...


alumni.php
Expand|Select|Wrap|Line Numbers
  1. <form action="alumniLogin.php" method="POST">
  2.   <TABLE width="166" height="188" cellPadding=0 cellSpacing=0 bgcolor=#8870AB style="BORDER-RIGHT: #9B77CB 1px double; PADDING-RIGHT: 0px; BORDER-TOP: #9B77CB 1px double; PADDING-LEFT: 0px; FONT-WEIGHT: bold; FONT-SIZE: 10px; BACKGROUND-IMAGE:  PADDING-BOTTOM: 0px; MARGIN: 0px; VERTICAL-ALIGN: top; BORDER-LEFT: #9B77CB 1px double; WIDTH: 140px; COLOR: #000000; PADDING-TOP: 0px; BORDER-BOTTOM: #9B77CB 1px double; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none" >
  3.     <tr align="center" bgcolor="#BA5179"> 
  4.       <td width> <center>
  5.           <font color="#FFFFFF" size="3" face="Verdana"><strong>ALUMNI LOGIN</strong></font> </center>
  6.         </td>
  7.     </tr>
  8. </table> 
  9.    </form>
ticker.php
Expand|Select|Wrap|Line Numbers
  1. <TABLE width="166" height="188" cellPadding=0 cellSpacing=0 bgcolor=#8870AB style="BORDER-RIGHT: #9B77CB 1px double; PADDING-RIGHT: 0px; BORDER-TOP: #9B77CB 1px double; PADDING-LEFT: 0px; FONT-WEIGHT: bold; FONT-SIZE: 10px; BACKGROUND-IMAGE:  PADDING-BOTTOM: 0px; MARGIN: 0px; VERTICAL-ALIGN: top; BORDER-LEFT: #9B77CB 1px double; WIDTH: 140px; COLOR: #ffffff; PADDING-TOP: 0px; BORDER-BOTTOM: #9B77CB 1px double; FONT-STYLE: normal; FONT-FAMILY: Verdana; TEXT-DECORATION: none" >
  2. <TBODY>
  3. <TR>
  4.       <TD style="BORDER-RIGHT: #9B77CB 1px double; PADDING-RIGHT: 4px; BORDER-TOP: #9B77CB 1px double; PADDING-LEFT: 4px; FONT-WEIGHT: bold; FONT-SIZE: 10px;  MARGIN: 0px; VERTICAL-ALIGN: top; BORDER-LEFT: #9B77CB 1px double; COLOR: #000000; LINE-HEIGHT: normal; PADDING-TOP: 4px; BORDER-BOTTOM: #9B77CB 1px double; BACKGROUND-REPEAT: repeat-x; FONT-STYLE: normal; FONT-FAMILY: Verdana; HEIGHT: 22px; TEXT-DECORATION: none;    FONT-SIZE: 11px; COLOR: #FFFFFF; FONT-FAMILY: Verdana "><B><FONT color=#FFFFFF size="2" face="Verdana">&nbsp;UMS 
  5.         Career News</FONT></B></TD>
  6.     </TR>
Why are you only using some CSS? Try make them the same percentage width.
Feb 23 '07 #2

100+
P: 127
Why are you only using some CSS? Try make them the same percentage width.


Thanks, i noe wat u mean.. Thanks.. :)
Feb 23 '07 #3

Expert 100+
P: 1,892
Thanks, i noe wat u mean.. Thanks.. :)
Did you get it working properly?

Aric
Feb 23 '07 #4

100+
P: 127
Did you get it working properly?

Aric

yes, i change the percentage of the width already.. Thanks.. :)
Feb 24 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.