Create a link button with borders using CSS

To create a link button with borders, you can try to run the following code −


Live Demo

<!DOCTYPE html>
         a:link, a:visited {
            background-color: white;
            color: black;
            border: 1px solid blue;
            padding: 30px 30px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
         a:hover, a:active {
            background-color: red;
            color: white;
      <a href = "demo.html" target = "_blank">Demo Link</a>

Updated on: 30-Jun-2020

2K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started