Easily Create Buttons With Icons Using HTML & CSS - Web Development Tutorial

Поделиться
HTML-код
  • Опубликовано: 30 мар 2021
  • View the Code & CodePen:
    dcode.domenade.com/tutorials/...
    In today's video I'll be showing you how to create a button with icons using HTML & CSS. This is easily done, and can be added to your own website or project.
    Icon library used (Ionicon):
    ionicons.com/
    Join this channel to get access to perks:
    / @dcode-software
    💜 Join my Discord Server:
    / discord
    🎨 Download my Visual Studio Code theme:
    marketplace.visualstudio.com/...
    Support me on Patreon:
    / dcode
    Follow me on Twitter:
    @dcodeyt
    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

Комментарии • 98

  • @jossiahtetteh4326
    @jossiahtetteh4326 2 года назад +58

    we pay huge fees to be taught all these yet still we always come back to a youtuber like this awesome guy to understand them better... u did all bro +1 subscriber

  • @jakobo5521
    @jakobo5521 2 года назад +8

    Thank you for this video! I needed to get back and refresh some stuff in terms of creating buttons. Really good source for that! Thanks once again. Cheers! :)

  • @ShaudaySmith
    @ShaudaySmith Год назад +1

    Dude, you just rocked my prenatal understanding of css. this was soooo helpful!!

  • @lotannaezeuko7157
    @lotannaezeuko7157 Год назад +2

    this is one of the best videos that i have watched in regards to coding. Everything is so clear and the files are very easy to access. Thank you.

    • @dcode-software
      @dcode-software  Год назад +1

      That's a very nice compliment, thank you! Happy to help

  • @Fred-my9er
    @Fred-my9er Год назад +1

    I like how you explain every single thing. thanks

  • @MrSalFav
    @MrSalFav 2 года назад +1

    This is really good video. Thank you !!

  • @brythm5465
    @brythm5465 2 года назад +5

    This was excellent! Got through it and my button is there!, but im not sure how to connect it to the next page ive created?
    Please help!

  • @irun_mon
    @irun_mon Год назад

    very awesome tutorial and beginners friendly, explained every step even the small ones, many tutorials just skip those parts and I don't know what they did and just assume people just know what they're doing.

    • @dcode-software
      @dcode-software  Год назад

      Thank you! That's something that I really try to focus on in my content - not leaving out the little details.

  • @amplimagic2216
    @amplimagic2216 Год назад

    Thanks! Helped me a lot

  • @bonganihbonderah9541
    @bonganihbonderah9541 5 месяцев назад

    Thanks man
    So helpful.

  • @franco9571
    @franco9571 2 года назад +1

    LA MEJOR EXPLICACION DIOS MIO QUE BUEN TUTORIAL

  • @byleexs1991
    @byleexs1991 Год назад

    best tutorial I've seen on buttons yet! Instalike

  • @Micychalek
    @Micychalek 2 года назад +1

    Bro, I have a question. How do I make the button working, like you click it and it brings to a link you put in the code?

  • @SealSal
    @SealSal 2 года назад +1

    I'm trying the follow this tutorial when it is my first time using JS/HTML/CSS after 4 hrs

  • @saraeissa4954
    @saraeissa4954 2 года назад

    Thanks this was a great help I just now have to figure out how to put this button into the Tabs section of my website at the top. I cant figure out where all this button detail stuff goes with my tab stuff.

  • @septimusforster
    @septimusforster 6 месяцев назад

    Hey, man. Glad to finally see you! But I gotta say, your voice never matched my imagination of your visage. But you're all right.

  • @georgianvineyard
    @georgianvineyard Год назад

    thank you for the video. i have one question why all in html ? why dont you put style part in css ?

  • @__jake.m
    @__jake.m 2 года назад +1

    Thank you so much for this! :D

  • @marjkatb760
    @marjkatb760 Год назад

    this was a great video! I have an issue though, because there's red squiggly lines under the words on my button and I don't know what's wrong or how to fix it

  • @kitt3521
    @kitt3521 Год назад

    How do you get it to save though? I had a functioning button that allowed users to download their image from the page, but now that I styled it, I can't get it to work anymore.

  • @stern7658
    @stern7658 Год назад

    this is the only video i found that show how to do this

  • @valentinarojic8466
    @valentinarojic8466 2 года назад +1

    Great video!! How could I replace de icon with a Logo? Thanks!

  • @nq2c
    @nq2c 2 года назад

    amazing thank you so much

  • @bendsi4530
    @bendsi4530 Год назад

    very well explained mate but I would suggest not giving the container height instead give padding to both the text inside the button and the icon

  • @romuloalves9349
    @romuloalves9349 3 года назад +2

    Ótimo vídeo parabéns 👏.

  • @iustincobuz561
    @iustincobuz561 Год назад

    what if I make a button appear in the document with .createElement under certain conditions how could I incorporate that image for the button since the button element will appear rather than be built in the html doc in the first place?

  • @Chopitupwithme
    @Chopitupwithme 9 месяцев назад

    Thanks!

  • @emmanuelrf
    @emmanuelrf 3 года назад

    Nice and easy; simple, but elegant! 👌🏼

  • @tellstod3350
    @tellstod3350 2 года назад +1

    Thnak you bhai.

  • @Barresider
    @Barresider 3 года назад +4

    Why did you use inline-flex for button__text and button__icon? In my view you only need this if the elements are in a text flow, which they are not because the parent container is display flex?

    • @Barresider
      @Barresider 3 года назад

      @Geex Trix yes but I think display flex for these items would be enough, not inline-flex. Or not?

    • @dcode-software
      @dcode-software  3 года назад +4

      Flex is enough but span tags are inline by default so using inline-flex is closer to default then flex

    • @Barresider
      @Barresider 3 года назад

      @@dcode-software Oh yes thats right, thanks! Btw. Great video!

  • @adelm2887
    @adelm2887 2 года назад

    Awesome man ! Thanks a lot +1 subscriber

  • @joshman844
    @joshman844 Год назад

    How would i add the installation to an already made JS file i have linked to the html?

  • @ob7349
    @ob7349 2 года назад

    Adore your explanationS🥰

  • @exlerindia8108
    @exlerindia8108 2 года назад +2

    Awesome sir. +1 subscriber Congrats. How to hyperlink the button
    how link that button.

  • @Soamy_adhikari28
    @Soamy_adhikari28 Год назад

    Thanks this is helpful for me 👍👍👍 can we fix size of icons

  • @anangfirmansyah6488
    @anangfirmansyah6488 Год назад

    what font you using in visual studio?

  • @kylenault9295
    @kylenault9295 2 года назад +2

    How do I add a link to this button?

  • @elmetiu
    @elmetiu Год назад

    What font are you using in visual studio code?

  • @winartlk4894
    @winartlk4894 Год назад

    thanks bro

  • @rangabharath4253
    @rangabharath4253 3 года назад +1

    awesome as always :-)

  • @sunman.official
    @sunman.official 3 года назад

    Keep up the good job💙

  • @farshidkaviyani692
    @farshidkaviyani692 2 года назад +1

    veri good

  • @BodhisatwaSinha
    @BodhisatwaSinha 2 года назад

    thankssssss

  • @MaksymMinenko
    @MaksymMinenko 3 года назад

    That's the way to go!

  • @whitebear224
    @whitebear224 3 года назад +2

    Thank you! These look awesome.

  • @BadDevil
    @BadDevil Год назад +2

    Brother, how can I put a link in it or how can I make it responsive?

    • @CoolCoder_
      @CoolCoder_ Год назад

      wrap the button in an anchor tag and hyper refrence what you want

  • @GREAT_FOODS_
    @GREAT_FOODS_ Год назад

    how to put link in button plz know me...

  • @ifourstudio3432
    @ifourstudio3432 2 года назад

    how to add site link to this button?

  • @axpect.
    @axpect. 2 года назад

    How to add hyperlink to this button

  • @Sandeep0917
    @Sandeep0917 Год назад

    I am getting error.. can u please help me out

  • @mdjuberpaid1
    @mdjuberpaid1 3 года назад +1

    Sir you describes well

  • @swoorp
    @swoorp 3 года назад +2

    How to do you make the chrome tab width smaller???🧐

    • @nikhilmwarrier7948
      @nikhilmwarrier7948 3 года назад

      Right-click -> pin tab

    • @swoorp
      @swoorp 3 года назад

      @@nikhilmwarrier7948 oh thanks! i got it now 😂

  • @KostaTsourdalakis
    @KostaTsourdalakis 3 года назад +2

    GOAT

  • @zawadahmed9111
    @zawadahmed9111 3 года назад +1

    What is the name of your Vs code theme?

    • @dcode-software
      @dcode-software  3 года назад +2

      I use my own theme which I created, it's called "dcode"

  • @arkinsantos5737
    @arkinsantos5737 2 года назад +1

    WHERE DA RESET BUTTON

  • @nikhilmwarrier7948
    @nikhilmwarrier7948 3 года назад

    Cool!

  • @groovebird812
    @groovebird812 3 года назад +1

    Why using so much code and not only the button tag? You can simply use pseudo elements for this.

  • @dhpshow9277
    @dhpshow9277 2 года назад

    it dont help that the button dont do nothin -_-

  • @harpermartin7813
    @harpermartin7813 2 года назад +1

    Jesus Christ loves you!

  • @samettopal0
    @samettopal0 2 года назад +1

    sa

  • @yiwang3185
    @yiwang3185 Год назад

    ddff

  • @jalalejlali1640
    @jalalejlali1640 Год назад +1

    I think you are Iranian guy?or may be your face look like us hahahahahaha

  • @MsCellobass
    @MsCellobass Год назад +1

    are you kidding me??!! you can create a good looking button with just a couple of lines with inline styling! and adding an icon shouldnt have to be that elaborate!

  • @mdjuberpaid1
    @mdjuberpaid1 3 года назад +1

    Are you indian

  • @errinwright
    @errinwright 2 года назад

    This code does not work, video not valid

  • @thengakola6217
    @thengakola6217 3 года назад +2

    still on light theme? 👎

  • @madugulahariprasad672
    @madugulahariprasad672 Год назад +1

    Bro how can I contact you