Support Forums

Full Version: A good looking login form [HTML/CSS]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Ok heres a quick tutorial on how to create a decent looking login form in HTML and using CSS. For an example.. http://www.nmapforum.webege.com/Home.html

HTML
Code:
<html>
<body>

<form action="">
<input value="Username" type="text/css" onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'Username':this.value;" value="Username" /><br />
<input value="********" type="text/css"  onclick="this.value='';" onfocus="this.select()" onblur="this.value=!this.value?'********':this.value;" value="********" />
</form>

</body>
</html>
The above code will create a username and password field. In this example I have set the value to Username & ********. When you click on the text, the input field will clear, and if you click away from the inputs without typing anything, the values will show again.

CSS
Code:
<style type="text/css">
<!--
INPUT {
background: #000000 url(images/whatever.jpg);
color: white;
border: 0px;
font-family: arial, verdana, ms sans serif;
font-weight: regular;
font-size: 12pt
}
-->
</style>
Customize the CSS to your liking and place it anywhere within the body..
This will allow you to pretty much have full control on what your login form will look like..

Thanks,
The Major
Nice share, I liked how with the CSS you could make it look almost any way you want it to.
Very nice guide. Would this be able to be bridged with like, MyBB? Like if it used the same database for users.
Um how do i make it work ?