how to set fieldset height and width properties?

Discussion in 'PHP' started by hulkrana, Apr 24, 2007.

  1. #1
    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
     
    hulkrana, Apr 24, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    Maybe with CSS.
     
    nico_swd, Apr 24, 2007 IP
  3. PHPGator

    PHPGator Banned

    Messages:
    4,437
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    260
    #3
    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">
     
    PHPGator, Apr 24, 2007 IP
  4. dzysyak

    dzysyak Peon

    Messages:
    43
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    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.
     
    dzysyak, Apr 25, 2007 IP