Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

CSS based 50% Transparent border without using transparent image

CSS based 50% Transparent border without using transparent image

Problem

I need to make the Border of fancy box Transparent after i have made some modifications to it. For some reason i cant make it work with transparent.

I have create a sample example which is somewhat & i want to make the borders of the inner DIV transparent. i tried few thing but did not work. I would appreciate a pure CSS solution without using any transparent images

Example: JSFiddle

Is their a way we can add Opacity to border

Problem courtesy of: Learning

Solution

Just use color as transparent like this for making it fully transparent

border:10px solid transparent;

My fiddle

And if you want to add opacity, than this approach of your's is correct, it does make the border opaque

border-color:rgba(17,17,17,0.7);

You can use this too border-color:rgba(244,244,244,0.4); My fiddle

Solution courtesy of: Mr. Alien

Discussion

View additional discussion.



This post first appeared on CSS3 Recipes - The Solution To All Your Style Problems, please read the originial post: here

Share the post

CSS based 50% Transparent border without using transparent image

×

Subscribe to Css3 Recipes - The Solution To All Your Style Problems

Get updates delivered right to your inbox!

Thank you for your subscription

×