Grow your CSS skills. Land your dream job.

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

  • # October 6, 2009 at 8:37 pm

    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.

    Code:
    .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;
    }

    Code:

    Custom Droid Speeder

    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.

    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.

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

    # October 6, 2009 at 10:31 pm

    http://www.spiffycorners.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".