Learn CSS pseudo elements in 4 minutes 🔎

preview_player
Показать описание
CSS pseudo elements tutorial example explained

#CSS #pseudo #elements

p::first-letter{
font-size: 40px;
font-style: italic;
}
p::first-line{
color: skyblue;
}
#list1 li::before{
content: "✔";
}
#CSS::after{
content: "👈";
}
li::marker{
color: silver;
}
p::selection{
color: white;
background: black;
}
Рекомендации по теме
Комментарии
Автор

/* style.css */

p::first-letter{
font-size: 40px;
font-style: italic;
}
p::first-line{
color: skyblue;
}
#list1 li::before{
content: "✔";
}
#CSS::after{
content: "👈";
}
li::marker{
color: silver;
}
p::selection{
color: white;
background: black;
}

<!DOCTYPE html>

<html>
<head>
<title>My first website</title>
<link rel="stylesheet" href="style.css">
</head>
<body>

<!-- pseudo-element = used to style specific
parts of an element

selector::pseudo-element

h1::first-letter
-->

<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Corrupti aliquid iste aspernatur ullam pariatur officia, ipsam eligendi illum possimus nobis animi ipsa deserunt labore hic facere repudiandae quisquam earum qui!</p>

<ul id="list1">
<li id="HTML">HTML</li>
<li id="CSS">CSS</li>
<li id="JS">Javascript</li>
</ul>

<ul id="list2">
<li id="C#">C#</li>
<li id="C++">C++</li>
<li id="C">C</li>
</ul>

</body>
</html>

BroCodez
Автор

Bro you deserve a lot of subscribers for your efforts 😊 thanks for this videos🙏🙂

mathematicswithprabuddha
Автор

HOLA DESDE PERU, RECIEN INICIANDOME EN ESTE MUNDO, TUS VIDEOS SON MUY BIEN EXPLICADOS Y PRECISOS, GRACIAS POR TUS APORTES.

MIGUELSALAZAR-tdkv
Автор

U r D best BRO💯🔥 Learning from India🇮🇳

subh
Автор

Broooo you deserve a lot thank you so much

HashiramaSenju-fwuu
Автор

Thanks Bro, this really cleared things up for me!

qcy
Автор

Bro thanks for the video 📹, more subscribers

ssekabirarobs
Автор

this tutorial is very helpful, thank you. Have a taco on me! 🌮🌮🌮, when I get to your CSS margins tutorial, I'll leave rice beans and tortillas, and CSS animation...all you can drink Sangria! Again, thanks much... 🙂

ca-ltfc
Автор

everything is working fine now and ngl bro CSS is amazing

NarutoUzumakiDatebayo
Автор

Hi, I'm AJ and have just become a fellow Bro by liking, subscribing, and commenting :) LOL THANK YOU!

AdrianoJolivesi
Автор

How can i change the first letter selection? following the example on this video? cause the selection properties only change for the paragraph and dont include the first letter.

geer
Автор

Is this the last video of the css series?

zakariaayadi