Get a free trial // Grow your CSS skills // Land your dream job

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!

    # January 18, 2012 at 11:08 pm
    div {
    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.

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

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed