• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 190
  • Last Modified:

Size of forms fields and style sheets

Can I control de size (height) and position of the input fields of a form with a style sheet?

If so how?

I have this this in my site:


In ie  fields fall perfectly on image but using firefox the fall differently... what is the problem?
  • 3
  • 2
1 Solution
You can, but not the way you are doing it.  I'll post some better help shortly
This is just a start, but it should help you get going.  Take this code and put it in a file called stylesheet.css  (keep it in the same folder as indexs.html)

/* CSS Document */

div#one {
div#two {

Now take this code and use it for indexs.html:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stylesheet.css" rel="stylesheet" type="text/css">


<form name="uno">
<table border="0" width="642" height="480" cellspacing="0">
<tr height="121">
      <td colspan="2" width="642" height="121" background="top.gif"></td>
<tr height="336">
      <td width="266" background="left.gif"></td>
      <td width="376" background="right.gif">
<tr height="24" width="642"><td colspan="2" width="642" background="bottom.gif"></td></tr>

<div id="one"><input type="text" size="21"></div>
<div id="two"><input type="text" size="38"></div>


This is all done with div's.  The stylesheet tells the div where to place itself on the page.  This should get you going, feel free to respond with any other questions about this/divs/how i did it...
oh..i just noticed a small problem..the closing form tag,  </form> , should be placed after the last <div> tag.

You could(and probably should) essentially have

<div id="one"></div>
<div id="two"></div>
robrodpAuthor Commented:
Will wait... thanks
robrodpAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get 10% Off Your First Squarespace Website

Ready to showcase your work, publish content or promote your business online? With Squarespace’s award-winning templates and 24/7 customer service, getting started is simple. Head to Squarespace.com and use offer code ‘EXPERTS’ to get 10% off your first purchase.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now