Source code

Revision control

Copy as Markdown

Other Tools

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
<title>CSS Test: Border set to 'inherit', inheriting two values</title>
<link rel="author" title="Microsoft" href="http://www.microsoft.com/" />
<meta name="assert" content="The 'border' shorthand property properly accepts 'inherit' as a value and uses its parent's border setting." />
<style type="text/css">
#div1
{
border: dashed blue;
}
div div
{
border: inherit;
height: 1in;
margin: 10px;
}
</style>
</head>
<body>
<p>Test passes if there are two boxes with dashed blue borders below.</p>
<div id="div1">
<div></div>
</div>
</body>
</html>