How to make styling and functioning of form elements identical in all browsers?
<form> </form>
<fieldset> </fieldset>
<legend> </legend>
<button> </button>
<label> </label>
<input type="button" />
<input type="checkbox" />
<input type="file" />
<input type="hidden" />
<input type="image" />
<input type="password" />
<input type="radio" />
<input type="reset" />
<input type="submit" />
<input type="text" />
<select> </select>
<option> </option>
<textarea> </textarea>
<optgroup> </optgroup>
These are all form elements which are supported in XHTML and HTML.
My question is not about to make vertical or horizonal form. I'm asking, should we write any default CSS for every form element to make identical in all browser. No matter where and how I place them.
This is for form elements in Eric Meyer reset:
fieldset, form, label, legend
{
margin: 0;
padding: 0;
border: 0;
outline: 0;
font-weight: inherit;
font-style: inherit;
font-size: 100%;
font-family: inherit;
vertical-align: baseline;
}
YUI CSS reset also adds this:
input,textarea{ margin:0; padding:0; }
Like I found this JavaScript fix: http://css-tricks.com/select-cuts-off-options-in-ie-fix/
Does anyone know any other tips?