The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Implementing an SVG Icon System" Nov 30 - 6:00 PM Eastern

-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:


    Here’s the CSS:

    #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:

    -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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed