CSS !important Override
#my-div { background: red; } #my-div { background: blue; } <div style="background: red;"> #my-div { background: blue !important; } <div style="background: red !important">
A five-panel office comedy shows a gray-haired man and another man arguing and physically reacting as CSS code changes an element’s background from red to blue. The joke is that an inline style or a red background keeps overriding the ordinary rule, until `!important` is used to force the blue background; it is sent as a reaction to stubborn overrides or escalating technical arguments.
gray-haired man / седовласый мужчинаman in black cap / мужчина в чёрной кепкеblack T-shirt / чёрная футболкаoffice chair / офисное креслоcomputer monitor / компьютерный мониторdesk / письменный столoffice room / офисное помещениеmicrowave / микроволновкаblue bowl / синяя мискаCSS code overlay / наложение с кодом CSSred background / красный фонblue background / синий фонargument / спорpointing gesture / жест с указанием пальцем
- @afrosidemoon / 8545 2019-02-01
- Type
- image
- Size
- 284×800 · 51.4 KiB
- Mood
- absurd, argumentative
- Language
- en
- Added