Click to See Complete Forum and Search --> : smaller form fields ?????


popcop
01-10-2005, 06:28 AM
im creating a form on my hrml page but i want the fields to be smaller in height to fit into my design

whats the best way to do this

pj59
01-10-2005, 06:34 AM
Hello!

Do it with css. Example for a text field:<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style type="text/css">
<!--
.inp{
height:20px;
font-size:7pt;
font-family:comic sans ms, verdana, sans serif;
background-color:#ffffcc;
}
-->
</style>
</head>
<body>
<input type="text" class="inp" value="I'm small">
</body>
</html>Not everything which is possible in css can be applied to form fields; just play with different fields and attributes.

Regards PJ

popcop
01-10-2005, 06:40 AM
i dont mean the text... i mean the actualy field box itself... i want that smaller in height

pj59
01-10-2005, 06:47 AM
Originally posted by popcop
i dont mean the text... i mean the actualy field box itself... i want that smaller in height In my example, I set a height. This is for the box. The font-size is for the text inside.

PJ