How to Easily Create Pure CSS Tabs (No JavaScript Needed!)

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ย. 2024
  • Link to code:
    codepen.io/dco...
    In today's video I'll be showing you how to easily create CSS-only tabs - this is a perfect solution that only requires HTML & CSS and can easily be added to an existing website or web application.
    For your reference, check this out:
    developer.mozi...
    🏫 My Udemy Courses - www.udemy.com/...
    🎨 Download my VS Code theme - marketplace.vi...
    💜 Join my Discord Server - / discord
    🐦 Find me on Twitter - / dcodeyt
    💸 Support me on Patreon - / dcode
    📰 Follow me on DEV Community - dev.to/dcodeyt
    📹 Join this channel to get access to perks - / @dcode-software
    If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!
    #dcode #html #css

ความคิดเห็น • 36

  • @himabimdimwim
    @himabimdimwim 2 ปีที่แล้ว +3

    Oh, elegant solution! I wonder how well these nest inside of one another, it could be a unique primary navigation system!

  • @tonibalog
    @tonibalog 13 วันที่ผ่านมา

    Dude, this is amazing. Thx a lot.

  • @angiebabe2010
    @angiebabe2010 2 ปีที่แล้ว +5

    Dude, thank you so much for this!

  • @pratikdevle5830
    @pratikdevle5830 2 ปีที่แล้ว +4

    was searching for such tutorial...very easy to understand for beginners. Really nicely explained with pure css. 👍

  • @Matchadvmp
    @Matchadvmp 2 ปีที่แล้ว

    This actually worked, thank u

  • @photoinshot1355
    @photoinshot1355 ปีที่แล้ว

    Excellent tutorial, thanks!

  • @jean-michellaborie8201
    @jean-michellaborie8201 ปีที่แล้ว +2

    Thanks a lot for this video: easy to understand, simple to implement and very useful

  • @lulusaikou221
    @lulusaikou221 2 ปีที่แล้ว

    Thank you very much! I learned a lot!❤

  • @vtech8716
    @vtech8716 3 ปีที่แล้ว +1

    good tutorials, thanks

  • @hassantayf
    @hassantayf 3 ปีที่แล้ว

    very cool css tutorial thank's

  • @nareshhidalgo2588
    @nareshhidalgo2588 11 วันที่ผ่านมา

    What can I do to make it work on mobile or responsive? When I click on it, it doesn't work.

  • @malikaaissa8764
    @malikaaissa8764 11 หลายเดือนก่อน

    really useful thanks a lot

  • @badcatdesign
    @badcatdesign 3 ปีที่แล้ว +1

    Could this work via the keyboard? Tabbable? Accessible?

  • @josechirino5168
    @josechirino5168 3 ปีที่แล้ว

    Awesome work

  • @carloautor
    @carloautor ปีที่แล้ว

    I was just wondering I do we have to select the two adjacent siblings ? .tabs__radio:checked + .tabs__label + .tabs__content, why cant we just .tabs__radio:checked > .tabs__content ?
    Can someone answer? Thank you

  • @anonymousperson6188
    @anonymousperson6188 ปีที่แล้ว

    Hi. Does making the tabs differ at all when making a spreadsheet like excel...? Do you know of a video that shows how to make tabs with a spreadsheet situation...? I tried making the "flex-wrap" idea but it didn't work. I'm not sure what I did wrong... Currently it shows both spreadsheets on the same page...one under the other...🙏

  • @usmanAli-hw5xu
    @usmanAli-hw5xu 2 ปีที่แล้ว

    thank you

  • @anuragnair5
    @anuragnair5 ปีที่แล้ว

    hey man, thanks for this. what is the name of the vsc theme tho?

  • @dishydez
    @dishydez 2 ปีที่แล้ว

    Great, was looking for something like this. Quick q, is there a way to create a new tab button? As in lile a chrome or browser tab to open a new tab, is there a way to do this for this tutorial?

  • @KarthickKrishnan0014
    @KarthickKrishnan0014 3 ปีที่แล้ว

    You are awesome 👍

  • @RianY2K
    @RianY2K 3 ปีที่แล้ว

    Please resume yesterday tutorial about table, can we make datatable with pure JavaScript?

  • @umarnaeem4256
    @umarnaeem4256 ปีที่แล้ว

    Best one

  • @jaimeruedagomez
    @jaimeruedagomez ปีที่แล้ว

    amazing

  • @iamTazim9
    @iamTazim9 3 ปีที่แล้ว

    Plesse make an video, how to create Mobile (responsive) 2 colum card layout 🙂

  • @PrasannaNadagoud
    @PrasannaNadagoud 3 ปีที่แล้ว

    Please can you make vertical tab?

  • @rupam0
    @rupam0 3 ปีที่แล้ว

    Thanks,,,,,🤓

  • @AB-ms7my
    @AB-ms7my 2 ปีที่แล้ว

    13:45 code or didn't happen! Many browsers have bugs and you can make it work in one browser but not another. Good idea but half-assed implementation.

    • @goodshiro10
      @goodshiro10 ปีที่แล้ว +1

      If you have problems in rendering styles between browser, test them in every browser using some extension. Also use some prefixes in css properties like -moz for firefox, -webkit for chrome and some browsers, etc

  • @sarabibrahim8312
    @sarabibrahim8312 ปีที่แล้ว

    👏👏👏

  • @VrataVenet
    @VrataVenet ปีที่แล้ว

    Is flex responsive?

    • @dcode-software
      @dcode-software  ปีที่แล้ว

      It certainly does encourage responsive behaviour :)

  • @ClubMedia
    @ClubMedia 7 หลายเดือนก่อน

    :)

  • @saemjamin
    @saemjamin 3 ปีที่แล้ว

    Hey Dom, thanks a lot for the tutorial. Is it possible that it doesn't work if the CSS tabs are inserted more than twice on a page?

    • @daveturnbull7221
      @daveturnbull7221 ปีที่แล้ว

      Certainly works with up to 4 tabs as I've done that without any issue.

  • @Matchadvmp
    @Matchadvmp 2 ปีที่แล้ว

    This actually worked, thank u