You are here: CSS in Forms « HTML « IT news, forums, messages
CSS in Forms

Posted by Lawrence on 12/19/06 13:04

Quick question I am trying to style my submit button so it is line with
the input boxes. However this is not working:

input.sub
{
margin-left: 4.5em;
}

The html bit is this:

<div id="main-text">
<!-- Insert your page here -->
<h1>Please Register</h1>
<p>Enter your desired username and password</p>
<div id="register-form">
<form action="#">
<fieldset>
<legend> Registration</legend>
<p><label for="name">Name</label> <input type="text" id="name"
/></p>
<p><label for="e-mail">E-mail</label> <input type="text"
id="e-mail" /></p>
<p><input class="sub" type="submit" value="Submit" /></p>
</fieldset>
</form>
</div>


</div>


I have styled the inputs and labels correctly but I am having trouble
with the submit button!


Thanks

Lawrence

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация