Тёмный

Learn CSS ::before and ::after in 4 Minutes 

Coding2GO
Подписаться 56 тыс.
Просмотров 120 тыс.
50% 1

CSS Pseudo Elements Tutorial for beginners with creative code examples, explanations and animations about css pseudo-elements ::before and ::after, how to they work and how to use them. In this tutorial, we'll show you how to use ::before and ::after pseudo-elements to achieve creative designs that aren't possible with regular CSS.
Become a Member to Support our Channel:
👉 / @coding2go
*Check out our website*:
👉 www.coding2go.com
* Get our HTML Udemy Course*:
👉 www.udemy.com/...
*Host your own website with Hostinger*:
👉 www.hostinger....
Use our code CODING2GO to get a 10% discount
*What You'll Learn*:
Creating Custom Bullet Points: Replace default HTML list bullets with custom designs using ::before.
Animating Backgrounds: Add animations to backgrounds with ::after.
Floating Design Elements: Add floating design elements without extra HTML.
Advanced Styling Techniques: Use gradients, border-radius, hover effects, transitions, and animations with pseudo-elements.
Key Points:
Pseudo-Elements: They only exist in CSS, not in your HTML code.
Content Property: Required even if it’s an empty string.
Positioning: Use position: absolute; on pseudo-elements and position: relative; on the parent element.
Styling: Apply any CSS properties like background-color, gradients, shadows, etc.
Practical Examples:
Underline headings with custom styles.
Redesign bullet points using ::before.
Create cool hover animations with ::after.
Topics:
HTML tutorial, CSS tutorial, CSS pseudo-elements, ::before CSS, ::after CSS, custom bullet points, background animations, web design tips, learn CSS, Beginner Tutorial, web development
Background Music
Track: "Little Things"
Music provided by Slip.stream
Free Download/Stream: get.slip.strea...
Track: "One More Night"
Música fornecida por Slip.stream
Download grátis/Stream: get.slip.strea...

Опубликовано:

 

8 сен 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 113   
@gonzalobruna7154
@gonzalobruna7154 2 месяца назад
this is seriously the best explanation I've ever heard
@coding2go
@coding2go 2 месяца назад
Thank you, that is great to hear 😊
@JagdeepSinghKalsi
@JagdeepSinghKalsi Месяц назад
Absolutely. Thanks
@franciscochiri5240
@franciscochiri5240 Месяц назад
Same
@juhen9
@juhen9 Месяц назад
Bro said max-content 🤯 thanks! Great vid
@Eavesdro_pper
@Eavesdro_pper Месяц назад
It was amazing 😊 I have learnt this one
@kooyaw4445
@kooyaw4445 2 месяца назад
I've been coding for almost 2 years, never really understood these CSS properties till today
@coding2go
@coding2go 2 месяца назад
I am glad we could help you with that
@codesthenos
@codesthenos Месяц назад
GREAT EXPLANATION for real less than 4 minutes of pure gold
@Manishincode
@Manishincode Месяц назад
Just discovered this channel today and 1 thing i really loved about this is he really cares for the time 😄
@dikans2717
@dikans2717 Месяц назад
I usually copy those pseudo class without trully understanding what they really means. Now I can see the true power of it. Easy to understand, not wasting time
@PsychFacts_
@PsychFacts_ 3 дня назад
I discovered after, before and finally MAX-CONTENT. Unbelievable
@isaidstream4547
@isaidstream4547 Месяц назад
Thank you for teachin me that pseudo elements are not as important as I thought. 😂 So ::after and ::before can wait
@coding2go
@coding2go Месяц назад
Glad I could help 💀
@Thekidisalright
@Thekidisalright Месяц назад
Omg, I have trying to understand the use cases of ::before and ::after as a self-taught programmer for so long and your video just explain it so simply in minutes, you have earned a sub my friend, thank you.
@zackstorm2888
@zackstorm2888 18 дней назад
yow, its been days that i see it and never understood the meaning, i was afraid to look for a video and finish by watching a video of 1h but you saved me thanks, now im gonna go see the video about positions
@omupadhyay25
@omupadhyay25 9 дней назад
Suuuppppper Dupper SirAmazing Explanation
@awesomejr.530
@awesomejr.530 2 месяца назад
Wow... I have been coding for years now and this is the first time am understanding CSS pseudo after and before. Thank you so much for this video. You're a good teacher. 😊
@strategistaow3520
@strategistaow3520 Месяц назад
Finally I had problems understanding those Especially before and after why they are called that way what difference they make I see that they can be used as same thing Now i understand them way better
@keochanmarido188
@keochanmarido188 29 дней назад
This is the best explain CSS before and after class. Thank you for your hard work in explaining and editing the video to show me how it was done. Keep up the good work.
@user-ds4ym3hs4e
@user-ds4ym3hs4e Месяц назад
Nobody can surpass you sir , hats off hats off. I am literally not getting how to praise you .For real. This is the first ever tutorial in my life ,that, I learned something new which I wanted to understand, and that too within 4 minutes. Your explanation was really nice super fantastic 👏 ❤
@MrSatisfaction-wz1gb
@MrSatisfaction-wz1gb 2 месяца назад
Just WOW. I always wondered how people create so detailed hover animations!
@2010akatsuki
@2010akatsuki Месяц назад
Man, I've been struggling with this for so long now. And the explanations I was getting just did not make sense to make. Thank you for this video
@shahfaisal3923
@shahfaisal3923 2 месяца назад
You won a subscriber from Afghanistan. Nice explanation. Please pray for our country to get rid of talibans proxies of CIA and ISI.
@coding2go
@coding2go 2 месяца назад
Glad to have you here 🙏
@kareembamidele4804
@kareembamidele4804 Месяц назад
I'm so happy I am more comfortable and confident using ::before and ::after pseudo element
@_ayush_5495
@_ayush_5495 2 месяца назад
Subscribed man, keep the good content coming
@coding2go
@coding2go 2 месяца назад
Thank you, welcome to the channel 👋
@DE-nw9sv
@DE-nw9sv 15 дней назад
This was SO helpful, thank you!
@keerthikak2503
@keerthikak2503 Месяц назад
I really messed about how to got that ordered list items style to coloured ...Now cleared.. Thank you for posting this. Keep posting the stuffs like this❤
@tahmidrzishan
@tahmidrzishan День назад
Awesome tutorial. Mashaallah.
@rudranarayanmangaraj8451
@rudranarayanmangaraj8451 Месяц назад
hey could you please explain why they use box-sizing border-box in ::after and ::before elements? This is easily the best explanation of pseudo elements out there. Keep up the good work.
@RamaGuptaOfficial
@RamaGuptaOfficial Месяц назад
Dear Rudra, box-sizing: border-box; is used so that all the margin and padding will get removed (including previous and default margin & padding). Warm Regards, Ram
@JamshaidAzam-w6x
@JamshaidAzam-w6x Месяц назад
Amazing video sir it seems that this video only created for me thank you
@htlkmsi2775
@htlkmsi2775 Месяц назад
It’s so simple yet so visually rewarding. You have shown us the golden key to nice site👌🏻
@kangkanbaishya4686
@kangkanbaishya4686 13 дней назад
seriously bro , you said the style in just 2 minutes which I have been practicing for 2 hours 🤯🤯🤯🤯
@balajinadar1503
@balajinadar1503 2 месяца назад
Keep giving us tutorials like this, it helps a lot and gives new ideas for my projects. Thanks man!
@coding2go
@coding2go 2 месяца назад
Glad to hear that!
@MamunurRoshid93
@MamunurRoshid93 9 дней назад
Your explain just awesome
@huzaifayunus9243
@huzaifayunus9243 20 дней назад
The best explanation ever. Thank you.
@GolamMostafaDurbar
@GolamMostafaDurbar 7 дней назад
It's really helpful for me.
@moonmean7955
@moonmean7955 Месяц назад
Succinct and well explained 👏🏾
@user-li1rd4rs6l
@user-li1rd4rs6l Месяц назад
Wow you really incredible bro ,u really make me get familiar with css 🎉❤❤
@coding2go
@coding2go Месяц назад
Glad to hear that! Happy Coding ✌
@ashkanahmadi
@ashkanahmadi Месяц назад
Great video thanks. Just a note: you should be using the :marker pseudo element for styling the bullet points
@reginoryanchristian9856
@reginoryanchristian9856 27 дней назад
I can't believe this is free, this video is Udemy level tutorial.❤
@tasm.aex7
@tasm.aex7 2 месяца назад
Dude never saw such wonderful explanation of these topics literally watched everything I needed ❤
@vinzanity68
@vinzanity68 Месяц назад
New sub. Ty for short n sweet tutorial
@Chekad-k4o
@Chekad-k4o 27 дней назад
thanks for your tutorial .
@hossein22Z
@hossein22Z Месяц назад
For the first time I'm eager to do some CSS 😂 Amazing video, thanks.
@narottams9663
@narottams9663 Месяц назад
Amazing videos man! Just amazing....most helpful content I found on web design.
@mohitashliya8750
@mohitashliya8750 Месяц назад
Finally finally finally I understand these complex pseudo classes😂
@AS-mc2db
@AS-mc2db Месяц назад
Really understand....thank you
@coding2go
@coding2go Месяц назад
Glad it helped
@AS-mc2db
@AS-mc2db Месяц назад
Really really appreciated... I just subscribed to ur❤ channel
@titangaming600
@titangaming600 Месяц назад
That's pretty cool actually
@WhimsyWobbleFluffyMuffin
@WhimsyWobbleFluffyMuffin 2 месяца назад
Absolutely helpful mate🙏
@abdulsamadsiddiqui1649
@abdulsamadsiddiqui1649 2 месяца назад
Bro thanks alot i use it but i didn't know what it really do thanks now i can do anything i want
@Theritiksaini
@Theritiksaini Месяц назад
sir when will your css course will live i badly needed it with your explanation you are the best
@coding2go
@coding2go Месяц назад
We will publish the course next week on udemy ;)
@chijiokennabueze7696
@chijiokennabueze7696 Месяц назад
This video is sweet 🤣 I want more 😎
@salmaindrianputri164
@salmaindrianputri164 Месяц назад
Great explanation
@Tola_rhythms
@Tola_rhythms 2 месяца назад
Pseudo elements has always been my problem
@saurabhgautam3584
@saurabhgautam3584 Месяц назад
Keep it up..best explanation so far...
@danushadhaamarasekera7215
@danushadhaamarasekera7215 Месяц назад
Thanks a lot bro
@naveduddin5445
@naveduddin5445 2 месяца назад
Wow, that was awesome detailed explanation
@coding2go
@coding2go 2 месяца назад
Glad you liked it
@karim-gb5nx
@karim-gb5nx Месяц назад
What a masterpiece, many thanks
@HillBilly-rm4op
@HillBilly-rm4op Месяц назад
loved it understandable, streight to the point keep it up
@sg8nj
@sg8nj Месяц назад
Amazing🎉
@kalablack6996
@kalablack6996 2 месяца назад
DAMN Bro, thanks it was helpful, i did not understand these properties man u are awesome. Subs
@macrooooo__
@macrooooo__ 2 месяца назад
wow, thank you for this. I didn’t know I can do it like thar
@royedits65
@royedits65 Месяц назад
Absolutely Amazing 😮
@nurudeennajeem6605
@nurudeennajeem6605 Месяц назад
You're the best. Thanks a lot
@mrlukec
@mrlukec Месяц назад
Lovely!
@CintholAmerl
@CintholAmerl 2 месяца назад
You have gained a new subscriber 🔥. Nice work bro keep it up 🙏🏾
@coding2go
@coding2go 2 месяца назад
Thanks for the sub! Welcome to the channel ✌️
@ujjwalssharma8149
@ujjwalssharma8149 13 дней назад
Your explanation was excellent 🔥 but dude plz give the source code for nav bar at 0:18 , that was really awesome
@pyaephyo8108
@pyaephyo8108 Месяц назад
Thank You Very Much❤!
@abcdabcd8605
@abcdabcd8605 2 месяца назад
Amazing explanation!
@abbysteinmindset
@abbysteinmindset 2 месяца назад
more videos like this please
@qqmayakashi
@qqmayakashi Месяц назад
Holyyyy thank u
@edutechab
@edutechab 2 месяца назад
This is amazing 👏🏽
@Tola_rhythms
@Tola_rhythms 2 месяца назад
Thanks for the video
@tolotradavid5794
@tolotradavid5794 2 месяца назад
That's very good tutorial
@muhammadisa440
@muhammadisa440 Месяц назад
Thank you
@user-vk6xj7nk9l
@user-vk6xj7nk9l 12 дней назад
Thank you, you are really wonderful and the lesson was very useful
@Arthur-.
@Arthur-. 2 месяца назад
Thankyou!
@_poke_rock
@_poke_rock 27 дней назад
Explain those --webkit property too
@danushadhaamarasekera7215
@danushadhaamarasekera7215 2 месяца назад
Thanks brother
@muhammad_zohaib936
@muhammad_zohaib936 2 месяца назад
Awesome ❤
@musmanshahid5866
@musmanshahid5866 2 месяца назад
Really helpful bro
@tochimclaren
@tochimclaren 24 дня назад
So you apply the hover on the containing element::after
@S_B_BEATS
@S_B_BEATS Месяц назад
I recommend you to watch in 0.75x speed to get more clear
@ramzyabdul185
@ramzyabdul185 2 месяца назад
Fantastic 🎉🎉
@coding2go
@coding2go 2 месяца назад
Thanks 🤗
@rafaelfonseca7942
@rafaelfonseca7942 Месяц назад
Great tutorial
@nishaanjum4901
@nishaanjum4901 29 дней назад
No the transition is not working
@HexFireGaming1
@HexFireGaming1 2 месяца назад
Bro made video on gsap and pratical js use for animation
@xsdash
@xsdash 2 месяца назад
great
@bastiboydiaz7
@bastiboydiaz7 29 дней назад
chatgpt never told me about max-content 🤯
@user-vs9ey3bd4t
@user-vs9ey3bd4t Месяц назад
My html is going to look clean
@javedalimzai
@javedalimzai 2 месяца назад
⭐️
@onichan40469
@onichan40469 2 месяца назад
make a playlist already man
@dipanshusabharwal
@dipanshusabharwal 2 месяца назад
The channel aint regular in posting videos. Makes me wonder if I really want to subscribe.
@coding2go
@coding2go 2 месяца назад
We started uploading regularly this month and we will do our best to keep it that way. We appreciate every subscriber we can get but no one is forced to subscribe. I understand your scepticism, but then again subscribing is free. So worst case scenario is not getting free content, that you didn't spend money on 🤷‍♂️
@QueeeeenZ
@QueeeeenZ 2 месяца назад
how do you write before and after in Tailwind?
@Austin_de_Backyardigans
@Austin_de_Backyardigans 2 месяца назад
No se puede, usa el nativo
@UmmatAjmeri
@UmmatAjmeri 13 дней назад
Bro your voice like cristiano ronaldo 👍
@trantrungnghia9642
@trantrungnghia9642 2 месяца назад
i cried
@Kevinrj-oj6ri
@Kevinrj-oj6ri Месяц назад
Why no sound
@EJH783
@EJH783 Месяц назад
No fucking way
@UmmatAjmeri
@UmmatAjmeri 13 дней назад
Bro your voice like cristiano ronaldo 👍
Далее
Build this JS calculator in 15 minutes! 🖩
15:20
Просмотров 530 тыс.
Mark Rober vs Dude Perfect- Ultimate Robot Battle
19:00
Мама знает где все документы
00:21
Learn CSS Flexbox in 20 Minutes (Course)
20:37
Просмотров 89 тыс.
Please stop using px for font-size.
15:18
Просмотров 153 тыс.
CSS Border Animations in 6 Minutes
4:15
Просмотров 1 тыс.
Learn CSS Positions in 4 minutes
4:38
Просмотров 52 тыс.
Learn Flexbox CSS in 8 minutes
8:16
Просмотров 1,6 млн
A flexbox trick to improve text wrapping
5:02
Просмотров 213 тыс.
Learn CSS Border Animations in 6 Minutes
5:57
Просмотров 111 тыс.
Crazy CSS Using By Master CSS
6:46
Просмотров 131 тыс.
These CSS PRO Tips & Tricks Will Blow Your Mind!
8:48
Просмотров 285 тыс.