Solved

Form Design

Posted on 2008-10-20
4
185 Views
Last Modified: 2010-04-06
I've just been learning how to use style sheets and would like to be able to spice up the forms on a website I made. I really like how the login and password works on the www.me.com website. Would somebody be able to make an example on how that works so I could learn from it. Im also curious how they make the password input display a value of password, then when clicked it turns to a secure input.
0
Comment
Question by:KyleGreen
  • 2
  • 2
4 Comments
 
LVL 6

Expert Comment

by:thebradnetwork
ID: 22763649
0
 
LVL 6

Expert Comment

by:thebradnetwork
ID: 22763657
If you are new to PHP and MySQL go check out this website....its one i recommend to everyone.

http://www.w3schools.com/php/default.asp
0
 
LVL 19

Expert Comment

by:NerdsOfTech
ID: 22763942
Basically they set a subclass :focus on the INPUT to react to focus.
input {

	font-family: Helvetica;

	background: #fff url('/my/auth/loginForm/en/images/login.png?0b2cb6aac0dfc01459b60bc237bd1b5253d0c6e4') repeat-x scroll 0 -430px;

	border-top: 1px solid #707070;

	border-bottom: 1px solid #cecece;

	border-left: 1px solid #ababab;

	border-right: 1px solid #ababab;

 	font-size: 13px;

 	padding: 4px 3px 1px;

}
 

input:focus {

{

  outline-color: #ced2d5;

  outline-style: solid;

  outline-width: 1px;

  background-color: #fefeee;

  outline-color: #87929e;

}

Open in new window

0
 
LVL 19

Accepted Solution

by:
NerdsOfTech earned 500 total points
ID: 22765923
Extraction complete...
Try this without the background image css code line :)

input {

        font-family: Helvetica;

        border-top: 1px solid #707070;

        border-bottom: 1px solid #cecece;

        border-left: 1px solid #ababab;

        border-right: 1px solid #ababab;

        font-size: 13px;

        padding: 4px 3px 1px;

}

 

input:focus {

{

  outline-color: #ced2d5;

  outline-style: solid;

  outline-width: 1px;

  background-color: #fefeee;

  outline-color: #87929e;

}

Open in new window

0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
In this tutorial viewers will learn how to embed custom externally-hosted Google Fonts using the Google Font API in CSS Go to the Google Fonts website at google.com/fonts: Browse or search based on font properties or name to find a suitable font for…

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now