Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

text field size

Status
Not open for further replies.

ofcalcul

IS-IT--Management
Sep 28, 2004
24
RO
Hi there,
Can someone help me out with a text field size?
Can insert a text field and use it at the same time, by now it's ok. What i cannot do is to resize that text field. I mean if i give it a height="15px" or height="15" it's resized in the preview window, if i display it in a IE window the text field has defalut size. How can i make theese text fields thinner ?
Thanks in advance.
 
By applying some css to it, have a look at this
Code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
<!--
.style1 {
	height: 15px;
	width: 50px;
}
.style2 {
	height: 25px;
	width: 100px;
}
.style3 {
	height: 35px;
	width: 150px;
}
-->
</style>
</head>

<body>
<form name="form1" method="post" action="">
  <p>
    <input name="textfield1" type="text" class="style1"> 
  Style 1  </p>
  <p>
    <input name="textfield2" type="text" class="style2"> 
  Style 2  </p>
  <p>
    <input name="textfield3" type="text" class="style3"> 
  Style 3  </p>
</form>
</body>
</html>

[Peace][Pipe]
 
GREAT, exactly what i needed :)
Thanks alot.
Cheers.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top