Hello frds? I need to know how to set fieldset height and width properties in code given below. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <title>form</title> </head> <body> <div align="center"> <h1><font color="#FFCC00">registration form</font></h1> <fieldset><legend>enter the basic details</legend> <table border=0> <form name="check1.php" method="post"> <tr> <td>Enter the name</td><td><input type="text" name="name" /></td> </tr> <tr> <td>enter the password</td><td><input type="password" name="password" /></td> </tr><tr> <td><input type="submit" name="submit" /></td> </tr><br /> </form> </table> </div> </body> </html> thanks
I'm not 100% sure on this, but the height of your text within a field (using CSS to determine) will also determine the height of your field. The size = x below determines width. <input type="text" name="whatever" size="15">
To my mid it will be better to use CSS. Something like the following: <fieldset style="width: 10px; height: 10px;">...</fieldset> Code (markup): Sure you can define CSS class also.