Grow your CSS skills. Land your dream job.

border opacity

  • # January 14, 2010 at 6:16 pm

    Is it possible to control opacity of borders?

    # January 17, 2010 at 10:07 pm

    Don’t think you can change the opacity of a border. however you could use css or jquery to set the opacity of a div then center another div inside that one. it would give the illusion of a border.

    # January 18, 2010 at 6:43 am

    You could do what kloy said, but you could make the background image of the div a .png file.

    Rob
    # January 18, 2010 at 8:44 am

    yea what Jamy said is pretty much what you should do. Remember opacity will apply to everything within the div as well, not just the div itself.

    # November 24, 2012 at 2:09 pm

    You can use rgba color instead of hexadecimal color for the border-color :
    border : solid 1px rgba(0,0,0,0.5); instead of border : solid 1px #000000;

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

The topic ‘border opacity’ is closed to new replies.

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