Just because you can draw it doesn't mean it's a good idea
Bests statement ever, and keep in mind the review comes from an art director. I firmly believe these are the kind of things that should be designed , code-wise and graphically, so that they gracefully degrade.
Anyway, employing CSS3, this could be a job for border image.
You could also do w/o any images ... like this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"><html>
<head>
<title></title>
<style type="text/css">
.test{
position: relative;/* can also be absolute*/
padding:12px;/*width of your 'border'*/
background: -webkit-gradient(linear, left top, left bottom, from(#4B3B1E), to(#fff)) ; /* Saf4+, Chrome */
background: -webkit-linear-gradient(top, #4B3B1E, #fff) ; /* Chrome 10+, Saf5.1+, iOS 5+ */
background: -moz-linear-gradient(top, #4B3B1E, #fff); /* FF3.6 */
background: -ms-linear-gradient(top, #4B3B1E, #fff); /* IE10, you can also use filter: for IE lt 10... */
background: -o-linear-gradient(top, #4B3B1E, #fff); /* Opera 11.10+ */
background: linear-gradient(to bottom, #4B3B1E, #fff);
-webkit-border-radius: 12px; /* Saf3-4, iOS 1-3.2, Android ≤1.6; adjust radius(12px) to be equal to the one in your image*/
-moz-border-radius: 12px; /* FF1-3.6 */
border-radius: 12px; /* Opera 10.5, IE9, Saf5, Chrome, FF4, iOS 4, Android 2.1+ */
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
-webkit-box-shadow: 0 -3px 3px #555;
-moz-box-shadow: 0 -3px 3px #555;
box-shadow: 0 -3px 3px #555;
}
.test:before {
position: absolute;
top:12px;/*width of your 'border'*/
bottom: 0;
left:12px; /*width of your 'border'*/
right:12px; /*width of your 'border'*/
background: #fff;
content: "";
border-radius:7px; -moz-border-radius:7px;-webkit-border-radius:7px; z-index: 0 /*width of your 'border'- (width of your 'border'x Pi); caus I LOVE MATH!!! ==:) */
}
.test li {
position: relative;
z-index: 2;
margin:0;
padding: 1em .5em;
list-style: none
}
</style>
</head>
<body>
<ul class="test">
<li>Content...Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</li>
<li>Content...Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</li>
<li>Content...Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</li>
</ul>
</body>
</html>
(pardon the messy code and comments it's been a hectic morning)
I hope that helps.
Bookmarks