An Interest In:
Web News this Week
- March 21, 2024
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
September 11, 2021 09:59 pm GMT
Original Link: https://dev.to/arndom/using-css-to-debug-strange-paddings-margins-l2n
Using CSS to debug strange paddings/margins
This is something I learnt recently while working on makerflow (shameless plug ).
Anyway, I was having this strange padding issue which was caused by some animation which I didn't know at first because the inspector wasn't finding it :
Solution :
So after some googling I came across this code:
/* PLACE IN YOUR index.css or whatever your root styling file is*/*{ outline: 1px solid #f00 !important; opacity: 1 !important; visibility: visible !important;}
And it helped me find where the bug was coming from and move on to other things:
This could be pretty useful in some instances. Anyway, I hope you find this helpful, bye.
Original Link: https://dev.to/arndom/using-css-to-debug-strange-paddings-margins-l2n
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To