Flex right and left division with certain gap in the middle - HTML & CSS - SitePoint Forums
![](https://global.discourse-cdn.com/sitepoint/original/3X/f/e/fe3111040e4f6bc96ed93ecd705f7ee605ada6ec.gif)
If we have to make a certain design where we have to divine available space such that in one row only two flex items are to be retained. I think this property will do the needful: flex: 1 0 50%; flex-wrap: wrap, but this doesn’t give a gap between the two left and right. Either we give padding-left ton flex right element or we give padding-right to the flex left element. Margin may be the other rescue. Another alternative will be to give a middle div in the middle and set margin/padding
![](https://online.fliphtml5.com/cgog/rjyd/files/large/1.webp)
csscookbook3rd - Flipbook by snbshttest
![](https://cdn-media-1.freecodecamp.org/images/1*aeXtrs9UI4WniMd1miDIDw.png)
The CSS Handbook: A Handy Guide to CSS for Developers
Is Flexbox faster than floats or inline blocks? How can I test if its fast or not? - Quora
![](https://css-weekly.com/wp-content/uploads/2023/05/future-css-anchor-positioning.jpg)
Archives – CSS Weekly
![](https://global.discourse-cdn.com/sitepoint/original/3X/4/c/4c2251cd7542b0f134f957602c7be5c9c9c10399.png)
Split the vertical content into three parts - HTML & CSS - SitePoint Forums
![](https://global.discourse-cdn.com/sitepoint/original/3X/0/d/0db44f15a8453d0f7cf399a655a22924bec45025.jpeg)
Flex item alignment and paragraphs within flex item - HTML & CSS - SitePoint Forums
![](https://i.stack.imgur.com/bhBuK.png)
html - Flexbox not giving equal width to elements - Stack Overflow
![](https://i0.wp.com/css-tricks.com/wp-content/uploads/2021/09/s_D3423FF09810746194954299B85CB2B742310C544423B71E9C9779FCF3745708_1630329122086_hover-margin.gif?resize=1655%2C703&ssl=1)
Minding the gap CSS-Tricks - CSS-Tricks
The CSS Handbook: A Handy Guide to CSS for Developers
![](https://global.discourse-cdn.com/sitepoint/optimized/3X/3/7/3704f95f902a39fc698bc829b85aefa470e7bff5_2_690x403.png)
Relative Positioning-Gaps - HTML & CSS - SitePoint Forums
![](https://s2.studylib.net/store/data/026012688_1-f67c2edbf3a7f2763ee221cc74c38576.png)
CSS Master, 3rd Edition by Tiffany Brown
![](https://css-irl.info/gap-04_900.webp)
CSS { In Real Life } (Don't) Mind the Gap
![](https://i.stack.imgur.com/bUi7z.png)
html - Text aligned to the left and right of a div to move to separate lines both on the left side of the div? - Stack Overflow
![](https://i.stack.imgur.com/chqqz.png)
html - Flexbox not giving equal width to elements - Stack Overflow
![](https://global.discourse-cdn.com/sitepoint/original/3X/3/5/35489ba64b6ded00651fc0d80883891b8f0ebecc.gif)
Flex right and left division with certain gap in the middle - #39 by PaulOB - HTML & CSS - SitePoint Forums