html - flex-wrap causing next line to have too big of a gap
By A Mystery Man Writer
Description
I have this flexbox that is used to vertically centre two lines of text. The two lines of text are too far apart. Here is an image of what I'm talking about:
Here is my code:
CSS
.vertical-cente
![html - flex-wrap causing next line to have too big of a gap](https://getflywheel.com/wp-content/uploads/2017/02/use-flexbox-card-design-flex-basics.jpg)
How to use Flexbox to create a modern CSS card design layout
![html - flex-wrap causing next line to have too big of a gap](https://i.redd.it/m6zwus3q12f91.png)
Problem with gap property in flexbox : r/css
![html - flex-wrap causing next line to have too big of a gap](https://i0.wp.com/css-tricks.com/wp-content/uploads/2020/06/43150-1.jpg?resize=1024%2C1024&ssl=1)
A Complete Guide to Flexbox
![html - flex-wrap causing next line to have too big of a gap](https://www.atatus.com/blog/content/images/size/w960/2022/09/css-word-wrap.png)
Applying CSS: word-wrap, overflow-wrap & word-break
![html - flex-wrap causing next line to have too big of a gap](https://global.discourse-cdn.com/sitepoint/original/3X/b/5/b5c41257add362acbb7ef61c1ee8ea1811799dac.gif)
Flex WRAP discussion - HTML & CSS - SitePoint Forums
![html - flex-wrap causing next line to have too big of a gap](https://getflywheel.com/wp-content/uploads/2017/02/use-flexbox-card-design-flex-grow-diagram.jpg)
How to use Flexbox to create a modern CSS card design layout
![html - flex-wrap causing next line to have too big of a gap](https://d2h1bfu6zrdxog.cloudfront.net/wp-content/uploads/2022/11/img_637376270d923.png)
A Guide to CSS Flexbox - CoderPad
![html - flex-wrap causing next line to have too big of a gap](https://www.freecodecamp.org/news/content/images/2023/08/24.-align-content-space-between.png)
The CSS Flexbox Handbook – Complete Guide with Practical Examples
![html - flex-wrap causing next line to have too big of a gap](https://coryrylan.com/assets/images/posts/2020-04-12-css-gap-space-with-flexbox/css-flex-wrap-with-css-gap-spacing.png)
CSS Gap Space with Flexbox
![html - flex-wrap causing next line to have too big of a gap](https://yqintl.alicdn.com/193448f1d3442b8781c7ccf680b834dc38438733.png)
Details on Flexbox Layout - Alibaba Cloud Community
Basic concepts of flexbox - CSS: Cascading Style Sheets
from
per adult (price varies by group size)