Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

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.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8713931
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:28:08+00:00 2026-06-13T05:28:08+00:00

In Gmail, when I click the compose button, then move my mouse off of

  • 0

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:

gmail compose button

How is this effect being done? Can I apply this effect to an anchor tag?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:28:09+00:00Added an answer on June 13, 2026 at 5:28 am

    Yes, you can, simply use border-style: double:

    a {
        color: #fff;
        background-color: #f00;
        font-weight: bold;
        border: 6px double #fff;
        padding: 0.4em 1em;
    }​
    

    JS Fiddle demo.

    The border-color here is #fff which 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 use box-shadow (or the vendor-prefixed variants) to:

    a {
        text-decoration: none;
        color: #fff;
        background-color: #f00;
        font-weight: bold;
        border: 3px solid #fff;
        padding: 0.4em 1em;
        box-shadow: 0 0 0 4px #f90;
    }​
    

    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-shadow approach, of course, allows for multiple different colours to be added to the outer aspect of the element. Unfortunately, though, the box-shadow solution 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 the a element elements along with display: inline-block (if they’re to be in-line elements) to allow the margins to take effect.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to open email sending form of Gmail directly on button click
When i click on the Mail button, the gmail client will open, but the
I am currently working with AJAX/JS to have form without a button click or
I like the Gmail facility of going to the next message using right click
I have created a php/mysql based chat page.It is like gmail chat.once i click
How to implement a gmail-like this is taking too long warning message using jQuery
I want to toggle two separate properties on a click event: 1) An image
I'm trying to get Log4Net working with web email, either Yahoo or Gmail. If
Gmail uses # when you click on a mail to distinguish the page (+
I want to write a window like gmail's chat window which when i click

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.