Log in

View Full Version : No fieldset padding top in IE8



Rain Lover
11-03-2012, 07:59 PM
Sample form:


<!DOCTYPE html>
<html>
<head>
<title></title>
<style>
fieldset {padding: 15px;}
</style>
</head>
<body>
<form>
<fieldset>
<legend>Form</legend>
<p>
<label for="name">Name </label><input id="name" type="text">
</p>
<p>
<label for="email">Email </label><input id="email" type="text">
</p>
</fieldset>
</form>
</body>
</html>

There's no padding top in IE8. Any cross-browser solution?

traq
11-03-2012, 08:17 PM
You might look at something like normalize.css (http://necolas.github.com/normalize.css/) (I prefer normalize over css resets).