1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

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,119
    Likes Received:
    331
    Best Answers:
    17
    Trophy Points:
    325
    #2
    Maybe with CSS.
    nico_swd, Apr 24, 2007 IP
  3. PHPGator

    PHPGator Moderator Staff

    Messages:
    4,435
    Likes Received:
    133
    Best Answers:
    0
    Trophy Points:
    210
    #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:

    Code (Text):
    1.  
    2. <fieldset style="width: 10px; height: 10px;">...</fieldset>
    3.  
    Sure you can define CSS class also.
    dzysyak, Apr 25, 2007 IP