SHARE

Hey gang, in this CSS Tricks tutorial, I’ll show you how to make a CSS-only tooltip, using CSS pseudo classes and the attr() value to dynamically inject our content.

—– COURSE LINKS:
+ Repo – https://github.com/iamshaunjp/CSS-Tips-and-Tricks
+ Atom editor – https://atom.io/a

CSS Playlist – https://www.youtube.com/playlist?list=PL4cUxeGkcC9gQeDH6xYhmO-db2mhoTSrT

———————————————————————————————
You can find more front-end development tutorials on CSS, HTML, JavaScript, jQuery, WordPress, Node.js & more on the channel homepage…

SUBSCRIBE TO CHANNEL – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg?sub_confirmation=1

========== PSD to WordPress Playlist ==========

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gnow7e45LQFkNVxwQ5BH-W

============ Node.js for Beginners Playlist =============

https://www.youtube.com/playlist?list=PL4cUxeGkcC9gcy9lrvMJ75z9maRw4byYp

============== The Net Ninja =====================

For more front-end development tutorials & to black-belt your coding skills, head over to – https://www.youtube.com/channel/UCW5YeuERMmlnqo4oq8vwUpg or http://thenetninja.co.uk

================== Social Links ==================

Twitter – @TheNetNinja – https://twitter.com/thenetninjauk

20 COMMENTS

  1. Go further and replace:
    1) 'margin-left: -8px' in .tooltip::before with 'transform: translateX(-50%)' and
    2) 'margin-left: -150px' and 'transform: translateY(-100%)' in .tooltip::after with 'transform: translate(-50%, -100%)'

  2. please do a tutorial on creating a login/ social media app with nodejs. you are the best teacher when it comes to web programming. thx

  3. Opacity is not the best way the hide elements in this case. As you can see on the end of the video, you hovered on the pseudo element accidentally, they still there and accessible.

  4. thank you mate,
    you helped me a lot. P.S. Do you know how to make a video lightbox but using jquery and css but without using plugins? Like f.e. a button which says: watch video.
    Keep on being a great Ninja!
    Peace out

LEAVE A REPLY

Please enter your comment!
Please enter your name here