Use the property white-space to prevent line break. Default value is normal
white-space: normal: Sequences of whitespace will collapse into a single whitespace. Text will wrap when necessary. This is default
You can set it to nowrap so the text won’t wrap to the next line until there’s a <br> tag.
white-space: no-wrap: Sequences of whitespace will collapse into a single whitespace. Text will never wrap to the next line. The text continues on the same line until a tag is encountered
You can prevent in general text wrapping for this element by setting for .content__date in css
white-space: nowrap;
Problem :
I’ve noticed that there’s a line break occurring in the content__date when the browser is in mobile view. I tried to add another container for the content__date but it is not working. Any ideas would be appreciated.~ I am totally new in web development please bear with me.