I'm trying to achieve rounded corners on both ends of the top of an image, but the image itself is covering them up. I've searched online and found suggestions like using overflow: hidden;
or even resorting to JavaScript (which I'd rather avoid), but I haven't been successful in integrating these solutions into my existing code.
Any help would be greatly appreciated.
<section class="container">
<header>
<img src="http://i.imgur.com/CpL8u.png" style="box-shadow: 0px 0px 10px #888;" />
</header>
<section class="body">
Lorem ipsum blahblah I don't know the rest.
</section>
</section>
CSS:
header {
width: 640px;
margin-left: -10px;
margin-top: -10px;
}
section.container {
background: #fff;
width: 620px;
margin: auto;
-moz-border-radius: 10px;
border-radius: 10px;
padding: 10px;
box-shadow: 0px 0px 20px #888;
}
section.body {
margin-top:10px;
}