Link to home
Start Free TrialLog in
Avatar of tanc02
tanc02

asked on

Form

I have declared a input type = text, and the height of the
text box is not what I am expected. So by giving the below :

<style type="text/css">
<!--
  .smalltext  { font-family:Serif; font-weight:normal;                      font-size:11pt; color:black; }            
//-->
</style>          

Is that possible to declared the height of the text box myself ?
Also, is that possible to use 'smalltext' in the textbox ?
Avatar of tanc02
tanc02

ASKER

Also, is that possible to make the border of the textbox smaller ?
use this:

<style type="text/css">
  .smalltext  { font-family:Serif; font-weight:normal;font-size:21pt; color:blue;height=100px;width=400px }
</style>    

.......

<input type=text class=smalltext value="">
what's your mean of "make the border of the textbox smaller"?
Are you mean that you want to change the border of it?
If you mean that, you can use
..smalltext  { font-family:Serif; font-weight:normal;font-size:21pt; border:0.2cm groove orange }
the following is the description of border:
{ border: sBorder }
sBorder String that specifies one or more of the following space-delimited values: width Any of the range of width values available to the borderWidth property.
style Any of the range of style values available to the borderStyle property.
color Any of the range of color values available to the borderColor property

the detailed description, you can see it from MSDN.
Avatar of tanc02

ASKER

<style type="text/css">
    .smalltext  { font-family:Serif; font-weight:normal;
                      font-size:21pt; color:blue;height=100px;
                      width=400px }
</style>

above code only make the font in the textbox as described,
but the height of the textbox is same.

I want the height of the textbox to be smaller than the default.  
ASKER CERTIFIED SOLUTION
Avatar of xyzffff
xyzffff

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial