CSS display: inline-block Explained By Creating a Grid

preview_player
Показать описание
Inline block is a very useful CSS display property value with good browser support that can be used to layout elements such as navbars, grids or even entire webpages.

In this video, you can learn not only how to create a responsive grid using this technique, but also properties and hacks unique to 'display: inline-block' such as vertical-align, text-align and font-size. Using the knowledge found in this video, you will be able to create excellent layouts on the web with little headache and good browser support.

Рекомендации по теме
Комментарии
Автор

For a half a year I couldn't find solution with that font-size in inline-block, and now I get it. Thanks

MrRades
Автор

I've been trying to learn this for 2 weeks, this explanation resonated with me, my shattered brain thanks you!!

jamievaughan
Автор

Merci beaucoup pour ce tuto 👍🏼
Hello from France, good tutorial

saucisseau
Автор

awesome, the concept helped me fix my issue. THANK YOU SO MUCH

jessyd
Автор

Thank you...Great tutorial! Been trying to figure this out for a while!

trueg
Автор

Nice dude, know i can make navbar much more easy.I was have trouble with setting border between navbar items.LOl, that font-size looks like a some css hack.
Thanks a lot.

maremeaxi
Автор

Thank you for your tips. Much appreciated!

CrackerJayherber
Автор

Excellent tutorial...very simple (and elegant) solution; thanks for taking time to share and explain it. :)

matttilley
Автор

Thank you for the tutorial, really helped me a lot.Cheers!

rollybacanto
Автор

omg, I was going crazy for that little space between my divs and it was font size??? lol thk

vaim
Автор

7:40 Can someone explain to me why the grid wasn't centered already since margin is set to "0" and "auto"?

zeroxcrusher
Автор

thanx for this video ..very useful for me

ginidthakur
Автор

At the end where you explained how the vertical-align would push everything in its collum to the top, is there a way where you can sorta ignore the Coloum and just push the shape below it directly underneath the other?

Schwidey
Автор

I have created 5 boxed and a paragraph in a div next. I want only the boxed in that line. How can I do this with display?

MyNegativeCreep
Автор

Nice video. I really learnt a lot. But I want what Linux distribution you're running on the PC.

charles_hacks
Автор

How would you add text below each of those blocks and have it be responsive with the block width and center?

adventurefilms
Автор

This worked! Thanks so much :)

But one thing I can't figure out is, why doesn't giving the grid item a horizontal margin of "auto" sort this out? In my mind that should equally space the inline-block elements across the div, but it somehow doesn't work :/ text-align: center just seems wrong somehow...

scaredypicker
Автор

Great tutorial! Btw, anybody know what kind of OS is this?

KhanhTran-wlhq
Автор

these hacks make sense in my head. what about mine?

somtovitus
Автор

what is meant by 0 auto....no what does that "auto" do?
edit: what is that "meta charset"?

mohibqureshi