In Gmail, when I click the compose button, then move my mouse off of it without letting up on the mouse button, I get this sort of elegant two-tiered border:

How is this effect being done? Can I apply this effect to an anchor tag?
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.
Yes, you can, simply use
border-style: double:JS Fiddle demo.
The
border-colorhere is#fffwhich appears ‘within,’ or between, the background-coloured segments.If you want to get even more interesting, and have the ‘outer-most border’ be a different colour to the
background-color, then you can also usebox-shadow(or the vendor-prefixed variants) to:JS Fiddle demo.
This displaces the shadow by zero units horizontally, zero units vertically, has a blur of zero units and a spread of
4px.The
box-shadowapproach, of course, allows for multiple different colours to be added to the outer aspect of the element. Unfortunately, though, thebox-shadowsolution doesn’t displace the element the shadow is, effectively, ‘intangible’. So you may have to account for the width of the shadow(s) and apply relevant margins to theaelement elements along withdisplay: inline-block(if they’re to be in-line elements) to allow the margins to take effect.