CSS Tutorial for Beginners - 30 - Block and Inline elements

Поделиться
HTML-код
  • Опубликовано: 12 сен 2024
  • In this video we take a look at block and inline elemnts.

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

  • @joan-mariacbrooks
    @joan-mariacbrooks 6 лет назад +7

    You are a gem! I'm in a ten-week class for Bootstrap, JavaScript and JQuery but you are my constant teacher and you make these classes so clear!

  • @kpopthings3399
    @kpopthings3399 6 лет назад +2

    you are the only teacher out there that actually explained this with detail and ease. i cant thank you enough! your teaching is simple and amazing. thank you.

  • @EJMedia1
    @EJMedia1  10 лет назад +12

    CSS Source:
    h1 {
    background-color: green;
    color:yellow;
    }
    p {
    background-color: green;
    color:yellow;
    }
    p.test {
    background-color: green;
    color:yellow;
    border-color: orange;
    border-width: 2px;
    border-style: solid;
    }
    h2 {
    background-color: green;
    color:yellow;
    }
    div {
    background-color: green;
    color:yellow;
    }
    img.special {
    }

  • @yawgyawu9225
    @yawgyawu9225 2 месяца назад

    You really make learning easier than other tutors, i already recommended your page to 100 people who want to learn.

  • @TopElectroInsights
    @TopElectroInsights 6 лет назад +2

    I made it this far and I am so excited to keep going. A+++ instructor. Fantastic Job EJ Media!!!

  • @radicholova
    @radicholova 7 лет назад +4

    I studied CSS in the university, but these videos are much more effective. Thanks for sharing your knowledge with us. You are very very good teacher.

  • @EJMedia1
    @EJMedia1  10 лет назад +7

    HTML Source:
    The Header1 is a block element
    The Paragraph is a block element
    The DIV is a block element
    The Header2 is a block element
    The DIV2 is a block element The Paragraph in the DiV2 is still a block element
    Another Paragraph in the DiV2 is still a block element
    The Header3 is a block element
    The DIV3 is a block element The Paragraph in the DiV3 is still a block element
    Another Paragraph in the DiV3 is still a block element

    DIV4 BUT EVERYTHING GETS THE BOX MODEL
    A span is INLINE
    A span is INLINE
    A span is INLINE
    A span is INLINE
    A span is INLINE
    A span is INLINE

    • @thomasyuanji7845
      @thomasyuanji7845 9 лет назад +3

      EJ Media Hello, EJ, I am confused about why you wrapping the using tag, isn't that a is already an inline element? Much appreciated.

  • @harshitkhanna7688
    @harshitkhanna7688 6 лет назад +15

    I've been learning so much from your channel. Where do you live pal? If ever I'm around, won't forget to buy you some beer.

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

      hi can you help me by telling whether you did this one in the same folder or you made a new one pls reply @Harshit Khanna

  • @dgxcena007
    @dgxcena007 8 лет назад +4

    this was the best way to explain block and inline elements
    never understood this way before

  • @roryoneill7059
    @roryoneill7059 7 лет назад +13

    If it is possible would you be able to make a C# visual studio series for your channel. I know that that you might not know the language etc but if you could i would really appreciate it as your teaching style really clicks with me and i have loved your HTML and CSS videos :).

  • @tahirmahmood3387
    @tahirmahmood3387 6 лет назад +1

    I am watching and learning a lot of things from you. I am very thankful to you. You are great. A lot of love and respect from Pakistan.😍😘😍

  • @darbarjayraj6155
    @darbarjayraj6155 7 лет назад

    E J Media has done outstanding job . I am thankful the guy who speak in HTML ,CSS and JavaScript videos. Even my professor was not able to explain me but this guy did it. Thanks a lot Man and i give him 10/10 marks for his teaching style. Keep going God bless you that I pray from bottom of my heart.

  • @khalidabdulhadi4473
    @khalidabdulhadi4473 6 лет назад +2

    Excellent and usefull course, I am learning a lot with you

  • @jasonhsu9455
    @jasonhsu9455 6 лет назад

    This is the best css tutorial on the youtube and it deserves more views!

  • @Lashovadjs
    @Lashovadjs 9 лет назад +1

    Amazing videos, I really appreciate your effort. I spent a lot of time reading those long sticky text tutorials and still got confused. Your video explanation has really got me into something solid.

    • @EJMedia1
      @EJMedia1  9 лет назад

      Vitt Volt Thanks much - my number one priority is to be clear and concise

  • @s171984
    @s171984 9 лет назад +6

    Thanks a lot EJ for your effort and time. You made me feel so comfortable with css whereas couple of days back, css was a nightmare to me. You have a generous heart for teaching ppl for free.
    BTW I am facing 2 issues right now.
    1) I have two div elements (nothing else) in HTML page and styled with different background-colors. Let me say div1 has green background and div2 has blue bg. When I render in google chrome(Version 41.0.2272.101 m).I am not seeing any line breaks between the two divs. (Also can you clarify, how different line break between two block elements from margin property.)
    2) when I am centering the image by setting margin-left and margin-right as auto, it is not working until I include "display: block; in that class"

    • @EJMedia1
      @EJMedia1  9 лет назад +4

      s171984 1) the div's operate a little strange when they are back to back like that - so have you included a margin around each one? 2) An image by default is an inline element so it can only be centered when you did just what you did - convert it to a block element

  • @dp-bhatt
    @dp-bhatt 7 лет назад

    I am learning css in depth from this series. Your teaching style is amazing. Great job ...

  • @BJ-gj2mv
    @BJ-gj2mv 7 лет назад

    this is the best videos for web development on youtube

  • @Astariicat
    @Astariicat 9 лет назад +17

    Frustrating as hell to pay 1300$ for this mandatory class in college when I can learn it for free here..... In fact, I'm learning MORE here..... so dumb. Thank you!

    • @EJMedia1
      @EJMedia1  9 лет назад +13

      Astariicat I think a lot of the instructors in these colleges have never coded anything - thanks for the nice words

    • @kieran2347
      @kieran2347 4 года назад +2

      @@EJMedia1 Seriously just so you know, i did a session on html and css (about 70 percent) on freecodecamp.org... it was okay but not as good as how you have managed to break the entire tutorial into a step by step fully explained short videos. This is what beginners like me need and look for. I should just thank the youtube as they added one of your videos on my everyday list. You have an amazing way of teaching people or showing stuff in very simplified manner and thats exactly what noobs like me need. Thank you very much. love from India. now im off to resume this 30th video cheers

    • @bginer-chess2154
      @bginer-chess2154 3 года назад

      @@kieran2347 yea, thats why i avoid freecodecamp, because it doesn't give us beginners a clear image of the things we will learn

  • @js9ball
    @js9ball 6 лет назад

    Thank you, your videos have helped me understand this so much more than other training sites.

  • @thestarinthesky_
    @thestarinthesky_ 5 лет назад +2

    Such an amazing explanation!

  • @techniquejoseph
    @techniquejoseph 8 лет назад +4

    Thank you sooooo much for these videos. I've always wanted to learn more in-depth nuances pertaining to the ins and outs of html/css. This is proving to be a wonderful source. Liked and Subscribed!! Would love to see SASS , and BOOTSTRAP. They would be nice additions to your series of videos ;)

    • @EJMedia1
      @EJMedia1  8 лет назад +4

      Bootstrap is on the list :)

    • @techniquejoseph
      @techniquejoseph 8 лет назад

      That's Awesome!!! I'll be on the look out! Greatly appreciated!

  • @Bliss..
    @Bliss.. 10 лет назад +3

    I remember when I was learning CSS... god it was such a pain in the arse to understand these concepts, if only someone would have explained them to me as you just did. too bad there was no youtube back then.

    • @EJMedia1
      @EJMedia1  10 лет назад

      Thanks I really tried to explain the core concepts in this series. I am working on the layout series which should tie it all together - just taking time to code the site! lol

    • @Bliss..
      @Bliss.. 10 лет назад

      EJ Media just some ideas for the future :D after you finish with css you should start doing sass compass, and the 2 most awesome frameworks susy and breakpoints. i think that would lead to layout mastery and ppl will love you xD

    • @EJMedia1
      @EJMedia1  10 лет назад

      blissB2 I can certainly do that. I have been looking at some of the stuff Unity has for websites and its VERY powerful

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

    This channel is gold. Thank you.

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

      hi can you help me by telling whether you did this on the same webpage or you made a new one pls reply @NyeinChan Soe

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

      @@CODGPLAYS i did it on the same page. But you can do whatever you like.

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

      @@ash_177 no i meant did you do this on the same webpage and stylesheet which was there older on 29 th playlist

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

      @@CODGPLAYS I deleted the previous code and did it on the same page. If you wamt to save the code on 29th video, you can create new html file and add css to it.

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

      @@ash_177 ok thanks bro

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

    Amazing videos I learned a lot form your channel.U make videos in very simple and easy mode .

  • @abhinavsingh-zc2hk
    @abhinavsingh-zc2hk 5 лет назад +1

    Your are the best

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

    thanks have learnt a lot keep it coming

  • @imBrney
    @imBrney 7 лет назад

    This what I'm looking for! Thank you! I will click your ads 5x!

  • @philtai7014
    @philtai7014 6 лет назад

    So far so good! Thanks for your good work!

  • @Skychooiii19
    @Skychooiii19 8 лет назад +3

    i learn so much! thank you!

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

    can you help me do we have to make new index and stylesheet for this or we have to continue on the same one

  • @cimst02
    @cimst02 5 лет назад

    Great videos! I see that there is created space between some lines, but i dont see a . How is that possible?

  • @animan756
    @animan756 7 лет назад

    What dictates the size of line breaks? What dictates where the first inline element started?

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

    What if we use inline elements under tag???

  • @hardikchojar9361
    @hardikchojar9361 4 года назад

    Thanks man for helping me learn all this i hope we can meet each other in the future

  • @drewmarsh
    @drewmarsh 10 лет назад +1

    I can not say it enough but these videos are great. LIKE

    • @EJMedia1
      @EJMedia1  10 лет назад

      Drew YTC Thanks! I took some time preparing this video because block and inline elements are very important to understanding CSS/HTML.

  • @lovelyhometoru
    @lovelyhometoru 4 года назад

    Well, I did not simply enjoy the show. I took notes. And it was good to write. Thanks for the break from coding.

  • @ibrahimadigun6462
    @ibrahimadigun6462 5 лет назад

    Nice work boss.. am on lesson 31 now

  • @IxDarkxNinjaxI
    @IxDarkxNinjaxI 6 лет назад

    This helped so much. Liked and subbed, thank you!

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

    Why did you put img element inside anchor element?

  • @purushothamraj9541
    @purushothamraj9541 9 лет назад +1

    Hi, it there anyway we can make a picture free flowing so that it adjusts its size as we increase and decrease the browser window size.

    • @EJMedia1
      @EJMedia1  9 лет назад +1

      Purushotham Raj Very good question and yes you can. So instead of using PX as the unit of measurement you will want to use % size. That's a good subject perhaps I will do a CSS video on that.

  • @taranjeetsingh6869
    @taranjeetsingh6869 4 года назад

    Sir why r u putting img tag inside the anchor tag?

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

    You are amazing

  • @Silverfox_67
    @Silverfox_67 9 лет назад +4

    side by side by side

  • @pelakila
    @pelakila 5 лет назад

    Awesome!

  • @syedsaifuddin4406
    @syedsaifuddin4406 5 лет назад

    Question:how to use margin and width

  • @islamibrahim3844
    @islamibrahim3844 5 лет назад

    Thank you sir u r the best

  • @karthikmatreddy
    @karthikmatreddy 6 лет назад

    I learn so much

  • @damianclarke376
    @damianclarke376 7 лет назад

    Where could I copy the style sheet ? thank you. :)

  • @arvindsran9742
    @arvindsran9742 5 лет назад

    where can i access the code for the tutorials?

  • @kingwindie
    @kingwindie 7 лет назад

    i tried to put mine into buttons,but it did not work.i created 3 buttons so when i hover over it will display a home icon,message icon and download icon,it didn't work.Anyway the color codes in this tutorial is funny

  • @eastern815
    @eastern815 6 лет назад

    Thanks

  • @pardhulucifer3304
    @pardhulucifer3304 6 лет назад

    Video starts at 2:01 if you've only come for inline and block elements. Btw, he keeps on repeating the same information when talking about block elements. You might wanna jump a minute or two.

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

    pls reply me @EJ Media

  • @slashsnake3544
    @slashsnake3544 6 лет назад

    bla bla bla...