---
title: "Discussion on \"Understanding !important in CSS: The Override Hammer\" | Hashnode"
description: "Discussion on \"Understanding !important in CSS: The Override Hammer\". Background: The Specificity Problem\nImagine you're working on a website and you write this CSS:\n.button {\n  background-color: blue;\n}\n\nEverything works fine. Your buttons are blue. But then you add this:\n#main-content .sidebar .button {\n  background-..."
url: "https://hashnode.com/posts/understanding-important-in-css-the-override-hammer/697f497bd7840152b1a4d174"
---

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

Discussion

# [Understanding !important in CSS: The Override Hammer](https://cssimpprop.abhisheksharma.blog/understanding-important-in-css-the-override-hammer?utm_source=hashnode&utm_medium=feed)

Background: The Specificity Problem Imagine you're working on a website and you write this CSS: .button { background-color: blue; } Everything works fine. Your buttons are blue. But then you add this: #main-content .sidebar .button { background-...

Feb 1 · 8 min read · cssimpprop.abhisheksharma.blog  
Read the article

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

## Written by

[Abhishek Sharma](https://hashnode.com/@abhishek-278604)

@abhishek-278604 · Ajmer, Rajasthan, India

  
[View profile](https://hashnode.com/@abhishek-278604)

Data Analyst

Qualification: M.Tech. Geoinformatics 6+ Yrs. Experience in Spatial Data &amp; Service Domain

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
