CSS visible properties

CSS visible properties

hashnode.com - Nov 10

In chrome devtools 108, a new feature have been released, which helps you know if there is an obsolete css property, let’s take an example

In this element header

we set the position: static , this position is preventing element from moving away not like relative or absolute so when we set a left property chrome devtools shows this icon beside the obsolete property - which in this case left: 0;

Screenshot 2022-11-09 at 9.36.39 PM (2).png

If we hover over this icon a hint message will show elaborating why this property effect will not be visible with a suggestion

Screenshot 2022-11-09 at 9.36.42 PM (2).png

If we changed the position property for example to relative we left effect will not be invisible and the icon will disappear.

Screenshot 2022-11-09 at 9.42.34 PM (2).png

MORE ARTICLES