Aligning Divs Side by Side CSS & HTML tutorial

Subscribers:
17,600
Published on ● Video Link: https://www.youtube.com/watch?v=dNYCrO8w4kg



Category:
Tutorial
Duration: 6:02
204,365 views
2,721


in this video, I will show you how to place three DIVS beside each other using HTML AND CSS. It is easy to accomplish that, and you need to pay attention to the percentages of the width. All divs by default are 100%. if you divide it by three, the results will be 33.33% Set the width of each div to 33.33%. Float the left Div to left. float: left; float the right DIV to right float:right; and to center the middle div, just add margin: 0 auto; This way the divs should be placed next to each other smoothly. Also, if you want to add more width to a specific DIV, basically, decrease the percentage from one Div and add it to the other DIV.

#webDesign #CSS #html







Tags:
how
to
place
three
divs
div
beside
each
other
css
html
tutorial
next
each other
web
design
development
cis
211
intro
web design