rfresh
07-27-2008, 04:24 AM
Can someone tell me why the rounded corners in these lines have an off-color look? It looks like a dark gray at the end of the lines.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
div.boxhead h2 {
background: url("rounded2.png") top left no-repeat;
}
.boxhead {
background: url("rounded2.png") top right no-repeat;
}
.boxbody {
background: url("rounded2.png") bottom right no-repeat;
}
.rounded {
background: url("rounded2.png") bottom left no-repeat;
width: 50%; /* could be whatever you want,
as long as your image is large enough */
}
.boxheaders {
padding: .4em 0 0 .6em;
border-bottom: 1px dotted white;
}
.centered { margin: 0 auto; }
.boxtext { padding: 0 1em 1em 1em; }
.green { background-color: #FFCC33; }
</style>
</head>
<body>
<div class="rounded green centered">
<div class="boxhead">
<h2 class="boxheaders"></h2>
</div>
<div class="boxbody boxtext">
<p>This is the body.</p>
</div>
</div>
</body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css">
div.boxhead h2 {
background: url("rounded2.png") top left no-repeat;
}
.boxhead {
background: url("rounded2.png") top right no-repeat;
}
.boxbody {
background: url("rounded2.png") bottom right no-repeat;
}
.rounded {
background: url("rounded2.png") bottom left no-repeat;
width: 50%; /* could be whatever you want,
as long as your image is large enough */
}
.boxheaders {
padding: .4em 0 0 .6em;
border-bottom: 1px dotted white;
}
.centered { margin: 0 auto; }
.boxtext { padding: 0 1em 1em 1em; }
.green { background-color: #FFCC33; }
</style>
</head>
<body>
<div class="rounded green centered">
<div class="boxhead">
<h2 class="boxheaders"></h2>
</div>
<div class="boxbody boxtext">
<p>This is the body.</p>
</div>
</div>
</body>
</html>