Is there a way to make the borders of an element semi-transparent? using purely css? like the modal window that facebook uses?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can use
rgba()such thatbackground-color: rgba(255,0,0,0.5);is the same asbackground-color: rgb(255,0,0); opacity: 0.5;For your border, do something like this
border: 3px solid rgba(255,0,0,0.3);http://jsfiddle.net/robert/b3e3v/