Saturday, August 17, 2013

CSS draw outline

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<style type="text/css">
p
{
border:red solid thin;
outline:#00ff00 dotted thick;
}
</style>
</head>

<body>
<p><b>Note:</b> Internet Explorer supports the outline property only if a !DOCTYPE is specified!</p>
</body>
</html>

Result


No comments: