Before and After Pseudo Elements Easily Explained [CSS]

Sdílet
Vložit
  • čas přidán 19. 09. 2019
  • Before and after pseudo elements are an essential part of CSS, but are often overlooked because they may seem confusing and hard to use. In this video I will take the confusion away and explain them so that you can easily incorporate them into your projects.
    I'll show you some examples of ::before and ::after pseudo elements. We'll cover why we use double colons instead of single colons, the importance of the content property, and when not to use pseudo elements. Toward the end I will have two complete examples of use cases for pseudo elements.
    _____________________________________
    📚 Learn to CODE in just a FEW months here:
    Treehouse Discount Code: treehouse.7eer.net/codeSTACKr
    _____________________________________
    🛠️ Tools I use:
    🟠 Theme: marketplace.visualstudio.com/...
    🟠 Font: STACKr Code (Exclusive to my VS Code Course - vsCodeHero.com)
    🟠 SuperHero Extension Pack: marketplace.visualstudio.com/...
    🚢 Deploy for FREE on Vercel: vercel.com/ambassadors/codest...
    _____________________________________
    💖 Show support!
    PayPal: paypal.me/codeSTACKr
    _____________________________________
    Watch Next:
    Web Development - Beginners Roadmap (2020) - • Web Developer Roadmap ...
    Playlist: Web Development For Beginners - • Web Development - Begi...
    _____________________________________
    Connect With Me:
    Website: www.codestackr.com
    Twitter: / codestackr
    Instagram: / codestackr
    Facebook: / codestackr
    _____________________________________
    ** Affiliate Disclaimer: Some of the above links may be affiliate links, which may generate me a sales commission at no additional cost to you.
    #codeSTACKr #css #learntocode
  • Věda a technologie

Komentáře • 59

  • @codeSTACKr
    @codeSTACKr  Před 4 lety +9

    Thanks for all of the support!!
    Next up Learn Sass in 30 Minutes:
    czcams.com/video/BDOzg4lXcSg/video.html
    📚 My Favorite Web Design Books 📚
    Web Design with HTML, CSS, JavaScript and jQuery Set by Jon Duckett (paid link)
    amzn.to/2JaiCL8

  • @MeAdhir
    @MeAdhir Před 4 lety +16

    Wow, very nicely explained. Thanks for giving such wonderful tutorials free!

    • @codeSTACKr
      @codeSTACKr  Před 4 lety +4

      Thank you, I really appreciate the support!

  • @Brandon-sr4qp
    @Brandon-sr4qp Před 4 lety +2

    13:10 was the "light bulb going off" kind of moment for me. And then once again at 15:58... I just spent the rest of the video after that in awe. Thanks for making this simple!

  • @rolandblanchard3029
    @rolandblanchard3029 Před 4 lety +4

    Best explanaition I found so far, I love how you go from simple examples to more complicated ones, showing exactly how powerful these pseudo elements are. Thank you!

  • @jalfmendonca
    @jalfmendonca Před 3 lety +2

    Well done!! This is probably the best pseude elements demonstration I´ve seen on this.

  • @themsmeek1
    @themsmeek1 Před 4 lety +2

    I'm half way in this video and already getting the benefits of this! Going to check out the rest of your videos thanks!

  • @digigoliath
    @digigoliath Před 4 lety +1

    Great video. I have heard about Before & After Pseudo Elements before but know nothing about their function & application. You explain it very well and make it is easy to understand. I still have to wrap my head around the transform / translate CSS position control in the last example but with practice, it should be clear. Thank you very much for the awesome content.

  • @coffee80119
    @coffee80119 Před 4 lety +3

    Real nice, i hope i can really get my grip on this sort off stuff and start building myself.

  • @boukman3668
    @boukman3668 Před 4 lety +3

    your content is very helpfull. Hope your chanel keeps expanding.

  • @Epikht
    @Epikht Před 2 lety

    This is the best video about this topic here. Thank you 🤝

  • @chickennuggies0242
    @chickennuggies0242 Před rokem

    Just the video i was hoping for

  • @DanCanning
    @DanCanning Před 4 lety

    Fabulous tutorial, as always. Thank you. I did come unstuck on the font awesome icons. I finally tracked it down, or at least I got t working.
    I swapped in -
    font-family: 'FontAwesome';
    for -
    font-family: 'Font Awesome 5 Free';
    and everything was as it should be.

  • @pratyushkumar7997
    @pratyushkumar7997 Před 4 lety +2

    thank you so much sir..❤
    you made a video on my doubt !😀😀

  • @him1019
    @him1019 Před 3 lety +1

    This video blew my mind. I'm new to web development and this was not only super useful but also really cool. I didn't understand what the point of ::after and ::before were but this cleared it up. Other videos just explained what they did but didn't give great in depth detail of how it is effectively applied. Great video

  • @markovidanovic9760
    @markovidanovic9760 Před 4 lety +2

    I just love your tutorials i hope you will make them more and more in future. :)

    • @codeSTACKr
      @codeSTACKr  Před 4 lety

      More on the way! Thanks for your support!!

  • @shaholanisha9135
    @shaholanisha9135 Před 3 lety +1

    Nicely Explained! Thanks for making this video.

  • @walanjsanket
    @walanjsanket Před 3 lety +1

    Never realised pseudo elements could do so much. You got a sub. Awesome video.

  • @mykolazhabko3228
    @mykolazhabko3228 Před 3 lety +1

    Really helpful lessons! Thanks!

  • @junaidtariq4547
    @junaidtariq4547 Před 4 lety +2

    well explained thanx :)

  • @Daniel-bb3pf
    @Daniel-bb3pf Před 4 lety +1

    excellent , merci pour vos Videos

  • @mortenlund1418
    @mortenlund1418 Před 3 lety +1

    Thanks - really nice explaining.

  • @Frankslaboratory
    @Frankslaboratory Před 4 lety +2

    Great explanation, thank you

  • @romyt9816
    @romyt9816 Před rokem +1

    Amazing video.

  • @brysontai5107
    @brysontai5107 Před 4 lety +1

    Sir, your video is just amazing and easier to understand for a beginner as me!
    But I am not really understand how transform work in CSS, do you have any recommended website or video for just explain it further? Thank You!

  • @mh5854
    @mh5854 Před 4 lety +2

    thanks

  • @koahforrest4090
    @koahforrest4090 Před 4 lety

    Hello, I've followed through your tutorial and I noticed that in the image card example, the before pseudo-element also fades out with the image but not the after pseudo-element, can you explain why and how to make it not fades out. Thanks. Your videos are awesome!

  • @VK-yk7sx
    @VK-yk7sx Před 4 lety +1

    Great

  • @viruff5448
    @viruff5448 Před 3 lety

    Nicee

  • @ykk9k
    @ykk9k Před 4 lety

    Maybe a bit of a weird question, but why wont the background-color show unless i set the top, left, right, bottom properties? How do the positioning and its attributes work together with pseudo elements?

  • @samirsamir7779
    @samirsamir7779 Před 3 lety +1

    Great the way you are explaining , really 10/10 . :: Are you planning please to provide a paid long course like : frontend from zero to hero , backend dev from zero to hero... (specially with the PHP language ) thank you .!

  • @samimahassan1716
    @samimahassan1716 Před 3 lety

    Hi , where we can get the link for the source code ?

  • @lalumierehuguenote
    @lalumierehuguenote Před 4 lety

    I cannot seem to find the snippet or emmet or intellisense case for a link in html i just don't find it. help ?

    • @lalumierehuguenote
      @lalumierehuguenote Před 4 lety

      aslo when I hover on the anchor it the orange block does not move.. hhmm..

  • @vitughost6778
    @vitughost6778 Před 4 lety

    Is it possible to get the source code?

  • @cybermats2004
    @cybermats2004 Před 4 lety +3

    Can you help me my biggest problem is that I get confused with all the staff that I learned. I forget things fast and don't know how to keep it in my head. I think i need more than just videos

    • @cybermats2004
      @cybermats2004 Před 4 lety

      I always code the same as you while you do it

    • @codeSTACKr
      @codeSTACKr  Před 4 lety +3

      Yep, that's common. What you should do is come up with a practice project and work through it on your own. When you get stuck, Google is your friend :)
      The best way to learn is to just jump in.

    • @codeSTACKr
      @codeSTACKr  Před 4 lety +2

      Start with something simple like a portfolio page.

    • @cybermats2004
      @cybermats2004 Před 4 lety +1

      @@codeSTACKr Thank you, your videos are the best

    • @cybermats2004
      @cybermats2004 Před 4 lety +1

      @@codeSTACKr and do you have a discord server where newcomers in html and css can ask questions. Google is good but sometimes I need more specific help that fits to me. For example I have problems with the Background right now I dont know how to fit it only on the about me page but when I scroll down there is still a short thing of the background

  • @MaksymMinenko
    @MaksymMinenko Před 3 lety

    You can use a 'random' query parameter with unsplash.it to get different images. Like this:
    unsplash.it/300/300?random=1
    unsplash.it/300/300?random=2

  • @haydarhamieh4949
    @haydarhamieh4949 Před 4 lety +1

    wow

  • @shamsudeenajani8602
    @shamsudeenajani8602 Před 4 lety

    @12.26: why did you set overflow to hidden.......i get confused most time when i see overflow set to hidden.....THANKS