Hi, I am a newbie to CSS, but haven't a clue about forms and I'm not sure which forum to address this question - please help.
I have used the CSS form on a website I'm working on:
http://www.woodenteacher.org.uk/prospectus.html
the CSS is:
.cssform p{
width: 300px;
clear: left;
margin: 0;
padding: 5px 0 8px 0;
padding-bottom: 75px;
padding-left: 155px; /*width of left column containing the label elements*/
}
.cssform label{
font-weight: bold;
float: left;
margin-left: -155px; /*width of left column*/
width: 100px; /*width of labels. Should be smaller than left column (155px) to create some right margin*/
}
.cssform input[type="text"]{ /*width of text boxes. IE6 does not understand this attribute*/
width: 180px;
}
.cssform textarea{
width: 250px;
height: 150px;
}
/*.threepxfix class below:
Targets IE6- ONLY. Adds 3 pixel indent for multi-line form contents.
to account for 3 pixel bug: http://www.positioniseverything.net/...reepxtest.html
*/
* html .threepxfix{
margin-left: 3px;
}
/* end of prospectus form */
and the xhtml is:
<form id="myform" class="cssform" action="">
<p>
<label for="user">Name</label>
<input type="text" id="user" value="" />
</p>
<p>
<label for="address">Address:</label>
<textarea id="address" rows="5" cols="25"></textarea>
</p>
<div style="margin-left: 150px;">
<input type="submit" value="Submit" /> <input type="Reset" value="reset" />
</div>
</form>
</div>
I am using a company called Streamline.net for my hosting, and they say that my account supports; PHP4, Pearl, and CGI, and I have my own personal CGI bin. I asked them for the script that I would need, but they basically said that I would have to find my own!
Help! I've read about Post/Get but I really don't know where to start.
ANY help will be very gratefully received.
Laura



Reply With Quote



Bookmarks