CSS you probably shouldn't write

CSS you probably shouldn't write

Wes Bos

2 года назад

24,068 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@FatherMathew
@FatherMathew - 28.11.2022 23:37

Thanks, I hate it 😂

Ответить
@namboozleUK
@namboozleUK - 29.11.2022 00:09

YOU MONSTER!

Ответить
@zorolindo
@zorolindo - 29.11.2022 00:18

nobody uses that tho

Ответить
@nova2wl
@nova2wl - 29.11.2022 00:29

I unfortunately have to use this on a semi regular basis to overwrite crazy styling coming from a very inflexible CMS our company uses.

Ответить
@ositaka
@ositaka - 29.11.2022 01:11

I’ve heard this trick on the podcast and I couldn’t believe when I saw it working 🎉

Ответить
@dan-garden
@dan-garden - 29.11.2022 04:08

Never do this 🤣

Ответить
@_parassolanki
@_parassolanki - 29.11.2022 10:39

How this will work because style has higher precedence then tag selector?

Ответить
@IvanHaha
@IvanHaha - 29.11.2022 11:12

I can't wait to see people writing this type of code :)

Ответить
@danielbuckland4329
@danielbuckland4329 - 01.12.2022 09:06

You know how helpful this is for working with WordPress, weebly, wix etc...

Ответить
@Michael-Martell
@Michael-Martell - 02.12.2022 06:42

I’m doing it right now at work.

Ответить
@punkerts7711
@punkerts7711 - 03.12.2022 01:30

Clever! I had to do this to ones. And I did it with JavaScript, but this is simpler.

Ответить
@louisyou
@louisyou - 03.12.2022 11:19

Fast track to messy css 😂

Ответить
@eugenevedensky6071
@eugenevedensky6071 - 03.12.2022 19:31

brains breaks ever so slightly

Ответить
@xBZZZZyt
@xBZZZZyt - 05.12.2022 00:55

You can maybe use existence of style attribute to know if resizable element has been resized.

Didn't test that tho.

Ответить
@soniablanche5672
@soniablanche5672 - 05.12.2022 04:36

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.

Ответить
@ashleystrout6651
@ashleystrout6651 - 06.12.2022 15:37

This made me physically cringe 😬

Ответить
@mohamedashrefbenabdallah2545
@mohamedashrefbenabdallah2545 - 08.12.2022 00:02

How did you change the style word font please xD

Ответить
@marian12435687
@marian12435687 - 09.12.2022 02:44

🤢

Ответить
@danielmbirch
@danielmbirch - 13.12.2022 14:38

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.

Ответить
@theklr
@theklr - 15.12.2022 19:39

I hate that also doing this is how I learned this

Ответить
@patricknelson
@patricknelson - 17.12.2022 03:46

Thank you, Satan.

Just kidding. Seriously though: Imagine diving into a codebase filled with these sorts of hacks. Now that would be hell.

Ответить
@siya.abc123
@siya.abc123 - 20.12.2022 08:06

I literally need this to change ReCaptcha width. Thanks man 🙏

Ответить
@frosty1433
@frosty1433 - 20.12.2022 19:35

You cannot override a property that’s in the style attribute.

Ответить
@patriayvida4209
@patriayvida4209 - 25.12.2022 18:05

Interested .... thanks for your time to share this with us!!! You earned a New Subscriber !!!

Ответить
@krystb
@krystb - 02.01.2023 02:48

It's just as weird as specifying <style> as a block and adding contenteditable attribute to it.

Ответить
@thedelanyo
@thedelanyo - 15.01.2023 00:51

You're really pushing the CSS boundary

Ответить
@exokristian
@exokristian - 21.01.2023 01:16

Automation and bots! Selecting elements to click them via puppeteer.

Ответить
@thebestchillsounds4780
@thebestchillsounds4780 - 20.02.2023 16:34

Haha love to all laravel devs :D

Ответить
@danioshi
@danioshi - 17.03.2023 14:01

This is actually useful when you cannot reach the source of that annoying inline style, thank you!

Ответить
@ajzack983
@ajzack983 - 01.04.2023 04:33

Goofy 😂

Ответить
@MayhemPhone
@MayhemPhone - 09.04.2023 01:54

Dev long enough and weird scenarios happen- this would have saved me a big headache just two weeks ago! Love the shorts!

Ответить
@nidhalbettaibi488
@nidhalbettaibi488 - 15.04.2023 04:57

Kind of workaround 😅

Ответить
@mateuszlomber
@mateuszlomber - 11.06.2023 21:48

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

Ответить
@xl34d10
@xl34d10 - 04.07.2023 16:13

The dark arts

Ответить