-
- CommentAuthorJames
- CommentTimeMar 26th 2008
-
- CommentAuthorcthelight
- CommentTimeMar 26th 2008
http://www.roscripts.com/PHP_login_script-143.html
for the login -
-
CommentAuthorperthmetro
- CommentTimeMar 27th 2008
do you want a code for the design or for the php backend part? -
-
- CommentAuthorJames
- CommentTimeMar 27th 2008
I already have a server side solution using ASP rather than PHP, I need help putting together CSS which suits the style of the template.
The code I would prefer to use for the login form is:<form action="/login/">
<input name="process" type="hidden" value="true" />
<fieldset>
<legend>Enter your Username / Password</legend>
<p><label for="username">Username:</label> <input type="text" id="name" /></p>
<p><label for="password">Password:</label> <input type="password" id="password" /></p>
<p class="submit"><input type="submit" value="Login" /></p>
</fieldset>
</form>
and for the contact form:<form action="/contact-us/">
<input name="process" type="hidden" value="true" />
<fieldset>
<legend>Enter your details and questions / comments</legend>
<p><label for="name">Name:</label> <input type="text" id="name" /></p>
<p><label for="email">E-mail Address:</label> <input type="text" id="email" /></p>
<p><label for="comments">Questions / Comments:</label> <textarea name="comments" cols="5" rows="5"></textarea>
<p class="submit"><input type="submit" value="Send us your questions / comments" /></p>
</fieldset>
</form>
If you look at my login page you can see the problem I am having.
I have tried looking at examples on other templates and through Google but I have so far had no success in finding a suitable solution.
What I am looking for is a user friendly guide or guidance on where to begin with CSS styling.
Any input would be appreciated! -
-
CommentAuthorperthmetro
- CommentTimeMar 27th 2008
download multiflex3 and try using it's contact form and the css as a starting point -
-
-
CommentAuthorperthmetro
- CommentTimeMar 27th 2008
-
-
-
CommentAuthorgnome
- CommentTimeMar 27th 2008 edited by gnome on the 27th March 2008 at 23:12:54 EDT
go to these lines in your login file:<fieldset>And remove the submit class from that last paragraph, then add a <br /> element right after the legend element, or perhaps two 2 <br /> elements. Those 2 things should put you a good bit closer to having a good looking form
<legend>Enter your Username / Password</legend>
<p><label for="username">Username:</label> <input type="text" id="name" /></p>
<p><label for="password">Password:</label> <input type="password" id="password" /></p>
<p class="submit"><input type="submit" value="Login" /></p>
</fieldset>
-
-
- CommentAuthorJames
- CommentTimeMar 28th 2008 edited by James on the 28th March 2008 at 21:22:28 EDT
@ perthmetro: Thanks for the link, its certainly given me inspiration, I'm trying to work out how to use that form.
I've noticed 2 problems
1.)The main background image caused a line through the information boxes. I deleted it from the server and it doesn't appear to make a big difference to the original template.
2.) The search box at the top of the page has moved down and left a bit and the text colour has changed.
@ gnome: Thanks, the form looks much better already! I removed the legend tag altogether as I prefered the colour of the<h2>tag. -
- CommentAuthorJames
- CommentTimeMar 31st 2008
Ok, so I worked out the easy solution - remove the search box!
One last quick question though, how could I move the entire form slightly to the right? -
-
CommentAuthorgnome
- CommentTimeApr 1st 2008
In forms.css, under form fieldset, you can change margin: 0 0 0 0; to margin: 0 0 0 10px;, or any other amount measured by pixel, em, or % (of page width). -
1 to 10 of 10
