Hi All,
Why does this work:
<div style="background-color: #ccc;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #000;
padding: 10px;">testing 10,9,8,7
</div>
And this does not?
<div style="roundedCornerBox">
testing 10,9,8,7
</div>
Where I have created a css file that says:
body {
background-color: #FFFFFF;
text-align: center;
}
roundedCornerBox {
background-color: #ccc;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #000;
padding: 10px;
}
Here is my HTML code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head><title></title>
<link rel="stylesheet" href="lib/css/style.css" />
</head>
<body>
<div style="roundedCornerBox">
testing 10,9,8,7
</div>
<div style="background-color: #ccc;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border: 1px solid #000;
padding: 10px;">
testing 10,9,8,7
</div>
</body>
</html>