size of button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gaya3
    New Member
    • Aug 2007
    • 184

    size of button

    Hi all,
    how to change the size of button in html?/
    pl anyone do needfull.
    Thanks in Advance

    -gaya3
  • robin1983
    New Member
    • Oct 2007
    • 99

    #2
    hi, as u want to change the size of button, then i think css code will be best for you. ok try this
    [HTML]<input type="button" value="Submit" style="width:10 0px; height:40px">[/HTML]
    in this case u css code is inside the input type tag ok

    or
    [HTML]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    <HTML>
    <HEAD>
    <TITLE> New Document </TITLE>
    <style type="text/css">
    .input1{
    width:50px;
    height:40px;
    }
    </style>
    </HEAD>

    <BODY>
    <input type="button" value="Submit" class="input1">
    </BODY>
    </HTML>
    [/HTML]

    best of luck ........

    Comment

    • drhowarddrfine
      Recognized Expert Expert
      • Sep 2006
      • 7434

      #3
      The proper doctype is this one:
      <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
      "http://www.w3.org/TR/html4/strict.dtd">

      Comment

      Working...