same size and width

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
zuzupus
Forum Commoner
Posts: 70
Joined: Thu Jul 17, 2003 4:54 am

same size and width

Post by zuzupus »

hi,
how can make same size of button as text as well as another buton same size as combo box
for eg. CALENDAR button size and width same as date text
SYSTE button size and width same as name select.

<html>
<form>
<body>
<table>
<tr bgcolor="#cccccc">
<th>Date</th>
<th>Time</th>
</tr>
<tr>
<td align="center">
<input size="1" type="button" name="CALENDAR" value="KALENDAR" >
<input size="7" type="text" name="date"></td>

<td align="center">
<input size="1" type="button" name="SYSTE" value="SYSTE">
<select name="name">
<option value="08:00">08:00</option>
<option value="09:00">09:00</option>
<option value="10:00">10:00</option>
<option value="11:00">11:00</option>
</select>
</td>
</tr>
</table>
</body>
</html>

thanks in advance
User avatar
Fredix
Forum Contributor
Posts: 101
Joined: Fri Jul 18, 2003 2:16 pm
Location: Wehr (Eifel) Germany
Contact:

Post by Fredix »

as this is a table its width is depending on the text (and browser window width) you can set the width of the input (buttons) to 100% and they should be as wiide as the text...
Post Reply