Комментарии:
Thanks, I hate it 😂
ОтветитьYOU MONSTER!
Ответитьnobody uses that tho
ОтветитьI unfortunately have to use this on a semi regular basis to overwrite crazy styling coming from a very inflexible CMS our company uses.
ОтветитьI’ve heard this trick on the podcast and I couldn’t believe when I saw it working 🎉
ОтветитьNever do this 🤣
ОтветитьHow this will work because style has higher precedence then tag selector?
ОтветитьI can't wait to see people writing this type of code :)
ОтветитьYou know how helpful this is for working with WordPress, weebly, wix etc...
ОтветитьI’m doing it right now at work.
ОтветитьClever! I had to do this to ones. And I did it with JavaScript, but this is simpler.
ОтветитьFast track to messy css 😂
Ответитьbrains breaks ever so slightly
ОтветитьYou can maybe use existence of style attribute to know if resizable element has been resized.
Didn't test that tho.
If your job is to tinker with wordpress sites and you don't have to courage to read the terrible PHP code, then you will end up doing a lot of this lmao.
ОтветитьThis made me physically cringe 😬
ОтветитьHow did you change the style word font please xD
Ответить🤢
ОтветитьUsed this many times to apply style to an attribute where the plugin hasn't provided any classes or ID's to use. Much better to use classes and ID's but sometimes they don't exist so this works well.
ОтветитьI hate that also doing this is how I learned this
ОтветитьThank you, Satan.
Just kidding. Seriously though: Imagine diving into a codebase filled with these sorts of hacks. Now that would be hell.
I literally need this to change ReCaptcha width. Thanks man 🙏
ОтветитьYou cannot override a property that’s in the style attribute.
ОтветитьInterested .... thanks for your time to share this with us!!! You earned a New Subscriber !!!
ОтветитьIt's just as weird as specifying <style> as a block and adding contenteditable attribute to it.
ОтветитьYou're really pushing the CSS boundary
ОтветитьAutomation and bots! Selecting elements to click them via puppeteer.
ОтветитьHaha love to all laravel devs :D
ОтветитьThis is actually useful when you cannot reach the source of that annoying inline style, thank you!
ОтветитьGoofy 😂
ОтветитьDev long enough and weird scenarios happen- this would have saved me a big headache just two weeks ago! Love the shorts!
ОтветитьKind of workaround 😅
ОтветитьYou have no idea how that helped me. I had a website with a lot of elements made using elementor widgets so I couldn't manually edit the html and I did not have any class on them and I couldn't add it to select the specific elements either and the only thing that these elements had in common was same style="", so that was my only choice :D
ОтветитьThe dark arts
Ответить