Grow your CSS skills. Land your dream job.

Double border on div

  • # January 18, 2012 at 10:43 pm

    Is there a way to give a div two borders? I want to put a 3px solid #000 with a 1px solid #d1d1d1 on top of it. Can this be done?

    # January 18, 2012 at 10:49 pm

    Here you are!

    http://css-tricks.com/snippets/css/multiple-borders/

    # January 18, 2012 at 11:08 pm
    div {
    background:#ccc;
    border:3px solid #000;
    -webkit-box-shadow:0px -1px 0px #d1d1d1;
    -moz-box-shadow:0px -1px 0px #d1d1d1;
    box-shadow:0px -1px 0px #d1d1d1;
    }
    # January 18, 2012 at 11:32 pm

    Thanks guys. That got me working. Greatly appreciate it.

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

You must be logged in to reply to this topic.

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