treehouse : what would you like to learn today?
Web Design Web Development iOS Development

What's the best way to make rounded borders with pngs

  • I redesigned my website and added rounded corners for each blog post. When I started exporting it I removed all the elements around the box, trimmed it, and spliced it into three parts. The top, middle, and bottom.

    The background on my page is a gradient so I have to remove the blue color around the borders of each box so it will scroll correctly. But when I do that it the white from the middle section to go behind the top of the box.

    This is my CSS and html from the page.
    .box {
    background: url(../images/content-bg.jpg) repeat-y;
    }

    .post {
    background: url(../images/content-top.png) repeat-x;
    padding: 15px;
    }
    .post-footer {
    background: url(../images/content-bot.png) no-repeat bottom;
    height: 41px;
    margin-top: -1px;
    }

    <div class=\"box\">
    <div class=\"post\">
    <h2 class=\"title\"><a href=\"#\">Custom Droid Speeder</a></h2>

    <p>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.</p>
    <p>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.</p>
    </div>
    </div>
    <div class=\"post-footer\">

    </div>


    [attachment=1]website template.jpg[/attachment]
    [attachment=0]Picture 1.png[/attachment]