---
title: "Discussion on \"How to make a button looked like it's staying pressed down\" | Hashnode"
description: "Discussion on \"How to make a button looked like it's staying pressed down\". Let's say you have a button on your page and when the user clicks it, it should look like it's staying pressed until they do something else. How do you do that? It's pretty easy, you just need a box shadow and a bit of JavaScript.\nButton set up\nLet's..."
url: "https://hashnode.com/posts/how-to-make-a-button-looked-like-its-staying-pressed-down/6162bf5f18374f2573272a0e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to make a button looked like it's staying pressed down](https://blog.nicm42.me.uk/how-to-make-a-button-looked-like-its-staying-pressed-down?utm_source=hashnode&utm_medium=feed)

Let's say you have a button on your page and when the user clicks it, it should look like it's staying pressed until they do something else. How do you do that? It's pretty easy, you just need a box shadow and a bit of JavaScript. Button set up Let's...

Oct 10, 2021 · 4 min read · blog.nicm42.me.uk  
Read the article

-   [#css](https://hashnode.com/tag/css)
-   [#javascript](https://hashnode.com/tag/javascript)

## Written by

[Nic](https://hashnode.com/@nicm42)

@nicm42 · England

  
[View profile](https://hashnode.com/@nicm42)

This week I learnt...

Front End Developer. I like problem solving and making things pretty. I also like red.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
