Forums

Get help. Give help. A Web Design and Development Community.

Double border on div

  • TWG
    # 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

    This reply has been reported for inappropriate content.

    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;
    }
    TWG
    # January 18, 2012 at 11:32 pm

    This reply has been reported for inappropriate content.

    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.

We have a pretty good* newsletter.