djanix
3/21/2012 - 2:38 PM

css -> label and input vertical align

css -> label and input vertical align

/*---------------------------------------------------------------------------
*  Label + input display fix
*  Put the input + text inside the label to make it works correctly
*--------------------------------------------------------------------------*/

label {
	display: block;
	padding-left: 15px;
	text-indent: -15px;
}

input {
	width: 13px;
	height: 13px;
	padding: 0;
	margin: 0;
	vertical-align: bottom;
	position: relative;
	top: -1px;
	*overflow: hidden;
}
/*---------------------------------------------------------------------------
*  Label + input display fix
*  Put the input + text inside the label to make it works correctly
*--------------------------------------------------------------------------*/

label {
	display: block;
	padding-left: 15px;
	text-indent: -15px;
}

input {
	width: 13px;
	height: 13px;
	padding: 0;
	margin: 0;
	vertical-align: bottom;
	position: relative;
	top: -1px;
	*overflow: hidden;
}
/*---------------------------------------------------------------------------
*  Label + input display fix
*  Put the input + text inside the label to make it works correctly
*--------------------------------------------------------------------------*/

label {
	display: block;
	padding-left: 15px;
	text-indent: -15px;
}

input {
	width: 13px;
	height: 13px;
	padding: 0;
	margin: 0;
	vertical-align: bottom;
	position: relative;
	top: -1px;
	*overflow: hidden;
}