Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS CSS variable weight double border

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #300004
    AJH123
    Participant

    I’d like to add a double border around an html element similar to the one at the following url:

    http://pluspng.com/png-151998.html

    It needs to have a thick outside border and a thinner inside one with about 10 pixels separating the two borders.

    I wondered if someone could tell me if I can do this using css?

    Thank you in advance.

    #300007
    AlainPre
    Participant

    Something ike this :

    #outer {border:solid thick black;}
    #inner {border:solid thin black; margin:10px;}

    <div id=”outer”>
        <div id=”inner”>
           …
        </div>
    </div>

    or a border-image : http://stylescss.free.fr/v2-properties/border-image.php

    #300032
    AJH123
    Participant

    The border-image property sounds like a good solution – thank you for the suggestion.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.