开发者

How do I line up video divs?

开发者 https://www.devze.com 2023-03-14 09:14 出处:网络
I\'m trying to create a videos section for my website, similar to the way dribbble.c开发者_Go百科om does it. I would like my video divs to fall into place next to one another like they do on dribbble.

I'm trying to create a videos section for my website, similar to the way dribbble.c开发者_Go百科om does it. I would like my video divs to fall into place next to one another like they do on dribbble... I figured creating the videos and floating them inside a larger div would do the trick, but I can't seem to get them to line up right. I know creating three columns would work but that would be kinda redundant.

Can someone give me the basic structure to achieve this kind of behavior?


Using this CSS property I think you will arrange your videos in one line.

display: flex;
flex-direction: column;
0

精彩评论

暂无评论...
验证码 换一张
取 消