r/css • • Jan 02 '20

Put and image inside text using css

https://www.youtube.com/watch?v=clDwknoKR9I
39 Upvotes

11 comments sorted by

13

u/shellwe Jan 02 '20 edited Jan 02 '20

I Know they like ad revenue so they do videos but I would really prefer a jsfiddle or something. There were 3 lines of code that were important.

6

u/queen-adreena Jan 02 '20

Yeah. There’s tonnes of crap videos like this being posted lately which take 3-4 minutes to tell you one tiny piece of information.

4

u/[deleted] Jan 02 '20

TLDW;?

9

u/shellwe Jan 02 '20

Have the text-fill as transparent and the background-clip as text.

Go 2:11 in and look at the bottom few lines. That's all that matters.

4

u/Hadr619 Jan 02 '20

Oh thank god I'm not alone. Everytime I click a post that interests me and its a video I audible groan, I wanted to see the Codepen or something. I dont need the explanation behind as a vidoe

6

u/[deleted] Jan 02 '20

That position absolute and all can be replaced using flexbox. Just add display: flex; and then justify-content: center; and align-items: center;

5

u/TheMarkBranly Jan 02 '20

Would be fantastic if the mods banned videos. Probably just going to unsub.

3

u/wedontlikespaces Jan 02 '20

The account only ever posts and never comments. at the very least I would recommend the mods ban any account from posting with less than 5 comment karma. Otherwise it's clearly just bot posting this stuff.

2

u/quantumkrew Jan 02 '20

Can we have a text summary please?

1

u/cwiggo Jan 02 '20

Great video! What's the vscode plugin / method you're using that suggests css snippets? Like when you type "bgp" and you tab and it inserts background-position? That'd be so useful to know. Thanks!

1

u/wedontlikespaces Jan 02 '20

I'm pretty sure all of these videos are being posted by the same person under different accounts. They all use the same text editor, with the same theme, and the theme is weird because it moves the task bar to the right which is non-standard. How many people have that set up?