Return to Snippet

Revision: 25345
at March 28, 2010 15:08 by C4ePhagaxaku


Initial Code
fieldset {
    border: none;
    
    /* trick */
    position: relative;
}

label
{
    font-family: Helvetica,arial,sans-serif;
    font-size: 15px;
    font-weight: bold;
    color: #9F0000;
    
    /* trick */
    left:10px;
    top:9px;
    position:absolute;
}

input[type="text"]
{
    border:1px solid #CCCCCC;
    display: block;
    color:#516064;
    font-family: Helvetica,arial,sans-serif;
    font-size:16px;
    margin-bottom:20px;
    padding:8px;
    width:400px;
    
    /* trick */
    text-indent:75px;
}

Initial URL
http://aext.net/2010/02/css-text-indent-style-your-html-form/

Initial Description

                                

Initial Title
Indent label value into form field

Initial Tags
css, html, forms

Initial Language
CSS