Scribe
Scribe

Gostou? Torne o Scribe ainda melhor deixando uma avaliação

Obter Extensão do Chrome

Navegar

  • Vídeos Populares
  • Vídeos Recentes
  • Todos os Canais

Ferramentas Gratuitas

  • Baixador de Legendas de Vídeo
  • Gerador de Marcadores de Tempo de Vídeo
  • Resumidor de Vídeos
  • Contador de Palavras de Vídeo
  • Analisador de Títulos de Vídeo
  • Busca de Transcrições de Vídeo
  • Análises de Vídeo
  • Criador de Capítulos de Vídeo
  • Gerador de Quiz de Vídeo
  • Chat com Vídeo

Produto

  • Preços
  • Blog
  • Obter Extensão do Chrome

Developers

  • Transcript API
  • API Documentation

Legal

  • Termos
  • Privacidade
  • Suporte
  • Mapa do Site

Direitos Autorais © 2026. Feito com ♥ por Scribe

— Se isso tornou sua vida mais fácil (ou pelo menos um pouco menos caótica), deixe-nos uma avaliação! Prometemos que vai alegrar nosso dia. 😊

Related Videos

CSS tutorial : Inline vs inline-block vs block in CSS. CSS display property.

Video thumbnail
7301,306 Palavras6m readGrade 18
Compartilhar
Channel
CopyCat Ram
Hello friends welcome back to my YouTube channel copykatram this is RAM and today I have brought another video for you in this video we will discuss in details about the display properties value that is inline inline blog and block so without any further delay let's begin so what is displaying line whenever you say display inline 2 an element you will be not allowed to set height and width and that element is generally going to be treated like and text inside a body so let's see an example so inside the body here I am going to
create and div and going to set it a class that will be called as display inline and inside the div here I am going to type some text so that we can check it on the browser so here I am typing display inline and going to set this display inline class some properties inside the style.css so here I am going to say display inline so let's save and refresh so right now on the browser you can see the text display inline and in the elements and inside the inspector you can see the div element rendered
and here is the class that I have set that is display inline on the right side you can see these CSS properties still that I have added so it have display inline so let me try to add some High to it so I am setting height 150 pixel with two handed pixel and a background color to be red save refresh so right now you can see that the background cloud has been applied but if you check over here right if you check here height and width both are disabled and here is your message that is
shown by the browser that same display inline property prevents width from having an effect try setting display to something other than inline that means you cannot set height and width to display inline element and another thing you need to notice over here with related to the margin and panic so let me set here margin of 50 pixel and the padding of 20 pixel you will notice a weird thing about this so let me refresh it as soon as I refresh you will notice that it got some some of the padding but the padding is only
applied only to the three set that's left right and bottom but has ignored to the top and the same thing has been happened with the margin the margin has been applied to the left right bottom but not applied to the top so this is the weird thing about the display inline that it ignored margin top and padding top why this display inline block generally when you say display inline block to an element from that moment you are allowed to set height and width even it going to consider the margin talk padding top so it is
not going to restitute to apply any other CSS properties to it and the another thing about the display inline block is that it put all the inline block element in horizontal line so let's see an example so here I am first going to create a div again and here I am going to set a class that will be called display inline block and again I inside digital.css I am going to set some properties like display inline inline blog and again as I told you that now you can set height so here I am setting height
of 150 pixel and width of 200 pixel and to see the changes that height and width accepted by the element or not here I am going to set background color of green so let's save and check so right now you can see the div here is the div element that has been rendered on the browser and here is the CSS properties that I have applied to it so right now you can see that the height and width had been accepted by it so whatever pixel you want you can set to it and another thing is
that even if you try to set margin of 5 pixel or padding of 20 pixel is going to accept all this so to understand this let me put some content inside the div elements so here I am going to set display inline block let's save and refresh so right now you can see that the padding has been applied so padding of 20 pixel has been applied as well as the margin is margin of 5 pixel is also applied in all the side inline block is not going to restrict you to use any other CSS properties
like it was happening with the display inline and another thing about the display inline block that I was told you that if you use the multiple display inline block element it's going to put them on the horizontal axis so here now I have used the four inline block element so let's save and refresh so right now you can see the all the four all the four element on the horizontal axis what is display block display inline block display block share the same features the only difference between them is inline block is set horizontally whereas display
blocks set every element to a new row so let's see an example for that again I am going to create a div I'm going to set a class that will be called as display clock and inside it here again I am going to set some text that we will display block and again I am going to set it inside the style.css file so here I am going to set display block I'm going to set width of 150 pixel height 150 pixel and the background color to red so as I told you that display blocks share
the same features as the display inline block so display block also is going to accept width height and margin and padding all the other stuff so let us save and see the example so as soon as I refresh then you will be able to see the block element so the block element have the height width and the background color everything has been accepted even though if you try to add margin you're going to accept this even how if you would going to add padding it going to accept this so let me save and refresh another
thing is that that I told you that the main difference between display block and display inline block is that every time you create a new element with the display block is going to render the element to a new line or in a new row so let us create multiple display block elements so for that here I am going to paste it multiple times so save and refresh so right now you can see that each element has been created in a new row even though it have many space on the right side so this is the
main difference between display inline block and block another thing about the display block is that even though if you do not set any width to the display block it it's going to occupy horizontally all the space of the viewport so right now you can see that as I have removed the width it have occupied the horizontal the horizontally space of the viewport hope I was able to explain you the differences between different value of the display properties if you really like the video do not forget to like the video subscribe the channel and share this
video with your friends thank you
Vídeos relacionados
Javascript DOM manipulation: how to change html data with Javascript. Simple and easy explaination
23:22
Javascript DOM manipulation: how to change...
CopyCat Ram
54 views
Block, Inline, and Inline-Block explained | CSS Tutorial
14:19
Block, Inline, and Inline-Block explained ...
Kevin Powell
248,032 views
CSS Display FLEX vs Block, Inline & Inline-Block Explained
6:46
CSS Display FLEX vs Block, Inline & Inline...
Cem Eygi Media
168,081 views
What the heck is the event loop anyway? | Philip Roberts | JSConf EU
26:53
What the heck is the event loop anyway? | ...
JSConf
3,470,243 views
Learn CSS Subgrid in 14 minutes
14:19
Learn CSS Subgrid in 14 minutes
Slaying The Dragon
81,302 views
TypeScript for Beginners in Hindi #18 |Understanding Inheritance in Typescript
17:15
TypeScript for Beginners in Hindi #18 |Und...
Web Coding With Ankur
9 views
32- Display : Inline & Block & Inline Block
11:38
32- Display : Inline & Block & Inline Block
Enes Bayram
29,675 views
Learn CSS Grid the easy way
37:04
Learn CSS Grid the easy way
Kevin Powell
920,733 views
Learn CSS display property in 4 minutes! 🧱
4:13
Learn CSS display property in 4 minutes! 🧱
Bro Code
78,848 views
3 Mini Python Projects - For Beginners
53:53
3 Mini Python Projects - For Beginners
Tech With Tim
424,152 views
Learn Flexbox CSS in 8 minutes
8:16
Learn Flexbox CSS in 8 minutes
Slaying The Dragon
1,671,753 views
Learn flexbox the easy way
34:04
Learn flexbox the easy way
Kevin Powell
716,266 views
CSS Tutorial: Position absolute, relative, fixed and sticky in CSS | Web Development Tutorials #25
14:42
CSS Tutorial: Position absolute, relative,...
CodeWithHarry
1,119,075 views
Learn CSS Animations In 20 Minutes - For Beginners
21:22
Learn CSS Animations In 20 Minutes - For B...
Slaying The Dragon
1,091,772 views
HTML & CSS Tutorial - Ways to code images...and how to do it well
22:25
HTML & CSS Tutorial - Ways to code images....
LearnCode.academy
363,910 views
Learn CSS BOX MODEL - With Real World Examples
17:45
Learn CSS BOX MODEL - With Real World Exam...
Slaying The Dragon
132,610 views
Calculating Text Similarity in Python with NLP
17:55
Calculating Text Similarity in Python with...
NeuralNine
54,751 views
Learn CSS Box Model In 8 Minutes
8:22
Learn CSS Box Model In 8 Minutes
Web Dev Simplified
603,672 views
Flexbox or grid - How to decide?
18:51
Flexbox or grid - How to decide?
Kevin Powell
734,852 views