Cardiff Council Content and design system

www.cardiff.gov.uk

Forms

selecting

Select fieldRadio buttonsCheckbox

layout

Message boxNavigation buttonsValidation and Errors

input

TextEmailTelephoneTextAreaSearch boxDateTimeRangeFileNumber

Date

Used for input fields that should contain a date.

Depending on browser support, a date picker can show up in the input field.

How to use this component


Code Resource

<label for="birthday" class="form_formLabelTitle">Date of Birth *</label>
<input type="date" name="birthday" id="birthday" class="form_formTextbox" title="Enter your date of birth" >
/* Input Fields and Label*/
.form_formTextbox {
    width: 100%;
    font-size: medium;
    margin-bottom: 15px;
    float: right;
    display: block;
    border-radius: 0px;
    border: 1px solid silver;
    padding: 2px 5px;
    border-radius: 6px;
    height: 45px;
    text-indent: 10px;
}

.form_formTextbox:hover, .form_formTextbox:focus {
    border: 1px solid #015b66;
    background: #f9f9f9;
outline: none;
}

.form_formLabelTitle {
    width: 100%;
    font-size: 1em;
    color: black;
    float: left;
    text-align: left;
    padding: 7px;
    padding-left: 0px;
}


.form_formInformationMessage {
    width: 100%;
    float: left;
    margin-bottom: 10px;
    color: #464545;
    position: relative;
    top: -10px;
    font-size: 0.9em;
    float: left;
}


/* END */

Working Example