Learn CSS pseudo-elements in 5 minutes! ✔

preview_player
Показать описание
#CSS #course #tutorial

CSS pseudo-elements tutorial example explained ::before ::after
Рекомендации по теме
Комментарии
Автор

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Bro Code</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<h1>Hello</h1>

<p>Lorem ipsum dolor, sit amet consectetur adipisicing elit. Minus fuga ullam quas corporis vel reprehenderit molestiae nam velit. Ut nulla vitae nobis tenetur voluptatibus reiciendis. Distinctio possimus fuga doloribus reprehenderit.</p>

<ul id="fruit">
<li id="apple">apple</li>
<li id="orange">orange</li>
<li id="banana">banana</li>
</ul>

</body>
</html>

/* style.css */

h1::first-letter{
font-size: 2em;
font-style: italic;
}
p::first-line{
background-color: hsl(60, 100%, 77%);
}
p::selection{
color: rgb(89, 255, 71);
background-color: hsl(0, 0%, 21%);
}
#fruit li::before{

}
#apple::after{
content: "🍎";
}
#orange::after{
content: "🍊";
}
#banana::after{
content: "🍌";
}
#fruit li::marker{
content: "✔";
color: hsl(120, 100%, 64%);
font-size: 1.2em;
}

BroCodez
Автор

This is Guy is a super teacher. I on watch all his video once and my brain absorbs 98% of his teaching....

AvidAfrican
Автор

I don't have idea how you do it. But it's amazing how easy I can understand with you. Thanks

bryanstevgarcespena
Автор

Excellent explanations and techniques 😊

sweethomes
Автор

In the name of Bro, and Code and Holy CSS, Amen!

konstantinzakharov
Автор

5:56 lol you explain better than my instructor in my paid course

Ferry
Автор

bro, why are you always switching the color scheme to hsl? btw I LOVE your videos, you make education much better and fun ❤❤❤

nonna_eml
Автор

Lost out on an interview last year when they asked me about this 😢

hotwings
Автор

How come all of your freaking videos in the freaking HTML playlist unlisted? For some reason it's annoying to look at. Please make them public.

omairtech