We would like to know how to border-top: 1px solid #999;.
<!DOCTYPE html>
<html>
<head>
<style type='text/css'>
fieldset {<!-- w w w . j a v a2 s . c om-->
border: none;
border-top: 1px solid #999;
}
legend {
padding: 0 5px;
}
</style>
</head>
<body>
<fieldset>
<legend>title</legend>
</fieldset>
</body>
</html>
The code above is rendered as follows: