TheBestTutorials.css Input
Input Form
Top Labels
Input Form
Example
<label>First Name</label>
<input class="subhodaya-input" type="text">
<label>Last Namel</label>
<input class="subhodaya-input" type="text">
</form>
Bottom Labels
Input Form
Example
<input class="subhodaya-input" type="text">
<label>First Name</label>
<input class="subhodaya-input" type="text">
<label>Last Name</label>
</form>
Input Cards
Header
Example
<div class="subhodaya-container subhodaya-green">
<h2>Header</h2>
</div>
<form class="subhodaya-container">
<label class="subhodaya-label">First Name</label>
<input class="subhodaya-input" type="text">
<label class="subhodaya-label">Last Name</label>
<input class="subhodaya-input" type="text">
</form>
</div>
Green Labels
Labels with class="TheBestTutorials-label" are green by default:
Example
<label class="subhodaya-label">First Name</label>
<input class="subhodaya-input" type="text">
<label class="subhodaya-label">Last Name</label>
<input class="subhodaya-input" type="text">
</form>
Validating Labels
Validating labels are red, and turns green when the input becomes valid.
To make labels validating, add a subhodaya-validate class to your subhodaya-label class.
Example
<input class="subhodaya-input" type="text" required>
<label class="subhodaya-label subhodaya-validate">First Name</label>
<input class="subhodaya-input" type="text" required>
<label class="subhodaya-label subhodaya-validate">Last Name</label>
<input class="subhodaya-input" type="email" required>
<label class="subhodaya-label subhodaya-validate">Email</label>
</form>
Colored Labels
Use any of the TheBestTutorials-text-color classes to color your labels:
Example
<label class="subhodaya-label subhodaya-text-blue"><b>First Name</b></label>
<input class="subhodaya-input subhodaya-border" type="text">
<label class="subhodaya-label subhodaya-text-blue"><b>Last Name</b></label>
<input class="subhodaya-input subhodaya-border" type="text">
<button class="subhodaya-btn subhodaya-blue">Register</button>
</form>
Bordered Input
Add the TheBestTutorials-border class to create bordered inputs:
Rounded Borders
Use any of the TheBestTutorials-round classes to create rounded borders:
Example
<input class="subhodaya-input subhodaya-border subhodaya-round-large" type="text">
Borderless Input
The TheBestTutorials-input class has a bottom border by default. If you want a borderless input, add the TheBestTutorials-border-0 class:
Example
<label>First Name</label>
<input class="subhodaya-input subhodaya-border-0" type="text">
<label>Last Name</label>
<input class="subhodaya-input subhodaya-border-0" type="text">
</form>
Colors
Feel free to use your favorite styles and colors:
Input Form
Example
<h2>Input Form</h2>
</div>
<form class="subhodaya-container">
<label class="subhodaya-label subhodaya-text-teal"><b>First Name</b></label>
<input class="subhodaya-input subhodaya-border subhodaya-light-grey" type="text">
<label class="subhodaya-label subhodaya-text-teal"><b>Last Name</b></label>
<input class="subhodaya-input subhodaya-border subhodaya-light-grey" type="text">
<button class="subhodaya-btn subhodaya-blue-grey">Register</button>
</form>
Hoverable inputs
The TheBestTutorials-hover-color classes adds a background color to the input field on mouse-over:
Example
<input class="subhodaya-input subhodaya-border subhodaya-hover-red" type="text">
<input class="subhodaya-input subhodaya-border subhodaya-hover-blue" type="text">
Animated Inputs
The TheBestTutorials-animate-input class transforms the width of an input field to 100% when it gets focus:
Example
Example
<label class="subhodaya-validate">Milk</label>
<input class="subhodaya-check" type="checkbox">
<label class="subhodaya-validate">Sugar</label>
<input class="subhodaya-check" type="checkbox" disabled>
<label class="subhodaya-validate">Lemon (Disabled)</label>
Example
<label class="subhodaya-validate">Male</label>
<input class="subhodaya-radio" type="radio" name="gender" value="female">
<label class="subhodaya-validate">Female</label>
<input class="subhodaya-radio" type="radio" name="gender" value="" disabled>
<label class="subhodaya-validate">Don't know (Disabled)</label>
Select Options
Example
<option value="" disabled selected>Choose your option</option>
<option value="1">Option 1</option>
<option value="2">Option 2</option>
<option value="3">Option 3</option>
</select>
Bordered Select Menu
Form Elements in a Grid
In this example, we use TheBestTutorials.css' Responsive Grid System to make the inputs appear on the same line (on smaller screens, they will stack horizontally with 100% width). You will learn more about this later.
Example
<div class="subhodaya-third">
<input class="subhodaya-input subhodaya-border" type="text" placeholder="One">
</div>
<div class="subhodaya-third">
<input class="subhodaya-input subhodaya-border" type="text" placeholder="Two">
</div>
<div class="subhodaya-third">
<input class="subhodaya-input subhodaya-border" type="text" placeholder="Three">
</div>
</div>
Two column layout with labels:
Example
<div class="subhodaya-half">
<label>First Name</label>
<input class="subhodaya-input subhodaya-border" type="text" placeholder="Two">
</div>
<div class="subhodaya-half">
<label>Last Name</label>
<input class="subhodaya-input subhodaya-border" type="text" placeholder="Three">
</div>
</div>