Grow your CSS skills. Land your dream job.

-webkit-border-radius & background-color

  • # December 20, 2008 at 3:07 pm

    I’m trying to set a background-color to a footer while maintaining rounded corners in Safari(-webkit-border-radius).

    Here’s the HTML:

    Code:

    Here’s the CSS:

    Code:
    #footer {
    width: 720px;
    height: 40px;
    background-color: #f9faef;
    -moz-border-radius: 0 0 10px 10px;
    -webkit-border-radius: 0 0 10px 10px;
    text-align: center;
    color: #300;
    border-top: 1px solid #eee;
    }

    #footer li{
    padding: 20px;
    display: inline;
    }
    #footer ul {
    padding-top: 10px;
    }

    <!–This is not an issue with FireFox (-moz-border-radius)–>

    # December 20, 2008 at 8:20 pm

    You’ve got to set them separately in Webkit, I believe:

    Code:
    -webkit-border-bottom-left-radius: 10px;
    -webkit-border-bottom-right-radius: 10px;
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".