- This topic has 6 replies, 2 voices, and was last updated 5 years, 2 months ago by Martin_1.
Author | Posts |
---|---|
Martin_1
September 27, 2019 at 4:12 pm
|
Hi, I am working on this page https://www.wintherbikes.com/safety-features/ and as you can see, the black titles next to the numbers in the right column are being broken into more lines (especially visible on smaller screens). The second line is no longer aligned and moves the the left. The number in front of the title is set to display: inline-block How can I get the title to stay aligned? |
Sebastian
September 29, 2019 at 8:33 am
|
Hi Martin, You need to wrap the .safety-title-first and .safety-text-first elements in a container element. Then set display:flex on the parent p element. That way, two columns will be created, and the text will not flow below the .safety-number-first element. Cheers, |
Martin_1
September 30, 2019 at 12:58 pm
|
Hi Sebastian, I am a bit confused. I placed the title and text inside a div (which places the title and text below the number) and set the display to flex. which indeed creates two columns. On the left the title and on the right the text. But I need two rows and they need to be next to the number. Man I am so confused LOL |
Martin_1
October 2, 2019 at 7:26 pm
|
Never mind. Someone in the Avada theme Facebook group came up with a solution. |
Martin_1
October 2, 2019 at 7:26 pm
|
.ptext { .h2a, .h2b, .h2c, .h2d, .h2e, .h2f { .h2f::before { |
Sebastian
October 8, 2019 at 5:22 pm
|
Great, I’m glad you found a solution. I did take a quick peak at your site just before my wife went into labour. The reason my flexbox suggestion didn’t work was because the div element you used to wrap the text was placed outside of the p tag. The WordPress editor may have auto-formatted things that way (it does do that sometimes). Just FYI! Cheers, |
Martin_1
October 9, 2019 at 11:15 am
|
Congratulations! I hope all is well with your wife and newborn. Regards, Martin |