Wrox Programmer Forums
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Dreamweaver (all versions) section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 29th, 2003, 11:04 AM
Authorized User
Join Date: Dec 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
Default sizing a form

Might sound silly, but I don't know how to size the input text boxes on a form to get them smaller (and have a smaller font inside, too)

Can someone help, please?


Old December 29th, 2003, 11:17 AM
Imar's Avatar
Wrox Author
Join Date: Jun 2003
Posts: 17,089
Thanks: 80
Thanked 1,576 Times in 1,552 Posts

Hi there,

You can use CSS (Cascading Style Sheets) to change the text box. It has a width and a height property that you can change. You can also change the font size. Here is a small example:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
    <title>Text box with CSS</title>
        background-color: #ffffff;
        font-size: 0.5em;    
        color: green;
        height: 100px;
        width: 200px;
        border: 1px solid black;
<input type="text" name="txtTest" class="MyClass">
This will create a text box of 100 x 200 pixels. It uses a small and green font. The border has been set to a single black solid border so the old 3D borders are no longer visible.

If I were you, I'd look into CSS. W3Schools has some nice tutorials: http://www.w3schools.com/css/default.asp



Imar Spaanjaars
Everyone is unique, except for me.
Old December 29th, 2003, 02:54 PM
Authorized User
Join Date: Dec 2003
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts

thanks a lot
it really works. I was already starting to use CSS, but I didn't know forms were manipulable that way, too.


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sizing Main/Sub Form Brendan Bartley Access 2 September 11th, 2006 07:50 AM
Sizing a form to fit different screen settings osemollie Pro VB 6 0 August 17th, 2006 11:09 AM
IMAGE SIZING glisando Dreamweaver (all versions) 0 January 2nd, 2006 12:11 AM
page sizing Adam H-W HTML Code Clinic 2 November 2nd, 2004 01:36 PM
Modal Form Sizing Woes SerranoG Access 1 June 13th, 2003 09:50 AM

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.