Streaming live at 10am (PST)

Text span creates a new column


#1

Hello, I’m getting a weird behavior with text spans.

This is a normal h2 text
05

This is what happens when I try to make some text bold.
13

this is the link to my website:
https://preview.webflow.com/preview/artpress?preview=1b6cb9cf7c432dcdcbe9a3e27a424bcd

Any idea?

Thanks!


#2

Hi. You declare h2 to display:flex - than inside this block element you add <strong> element - now the flex align this strong/or span and you get buggy look of the text. Thats it :slight_smile:

Change h1-6 to display: block (deafult) / inline-block / inline - its really bad practice to add display flex to h1-6 (create some wrapper for this idea)

https://www.w3schools.com/TAGs/tag_strong.asp.


#3

You are THE MAN.
solved.


#4

Great. Mark as solve for future searches and to close this topic :slight_smile: Thanks!


#5

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.