URL always breaks in two lines - this drives me mad!

Hi there,

I have one issue which drives me absolutely mad:
every time I try to insert a link within a rich text element (either in CMS or regular pages) it breaks in a new line…

I can’t simply link a word or so within the text.
Example: the “großen Arbeitgeber” link on Liste der größten Bauunternehmen in Nürnberg

Help is appreciated :slight_smile:

3 Likes

Hey @leos

That’s because the link is set to display: block; Set the link to display: inline-block;

Piter :webflow_heart:

2 Likes

Thanks, found it now. Wondering why it isnt inline-block by default?

1 Like

Well, actually it is :smiley: Perhaps you have set it to block by mistake? Or maybe you took your style for the link from the link block element instead of styling text link?

2 Likes

Where can I change this setting? All of my links in my CMS are set to display: block.

Can you share you read-only so that we may take a look at what’s going on?

https://preview.webflow.com/preview/jamess-business-starter-2602f1?utm_medium=preview_link&utm_source=designer&utm_content=jamess-business-starter-2602f1&preview=4c9b69138ca87cb9aab18e2d87c05bb1&pageId=5d51da67d4a63065ea36bb21&itemId=5d51da67d4a6301af136bb6a&mode=preview

Look at the body text, everytime I add a link, it makes a new line instead of just displaying inline.

You have set all your links to be a block instead of their default inline. Here is how you change that back.

4 Likes

Thank you! That solution worked great

@dram I’m stuck on this problem and I’d love to look at the link, but the link is broken.

Any chance you could repost that screenshot?

Just remove any custom styling from your link display setting if you have the same issue.

Sorry to be a newbie, but where are the link display settings?

At the top of the style panel.

2 Likes

I’m having the same issue but the link (https://share.getcloudapp.com/bLuJdg8P) appears to be dead. Any chance you could re-share/upload it? Thanks.

Just remove any custom styling from your link display setting if you have the same issue.

I have the same problem.

My link in embedded in a CMS rich text element. When I click on the setting button of the link in the CMS collection rich text element I am editing, the only option I have is to open the link in a new tab.

You need to edit your link class style not it’s settings.

Where do I find/change inline-block in a Rich Text Block?

UPDATE I found WHERE to change it and did, but it’s not reflowing my in-line links within a Rich Text block. I can’t figure out why.

FOUND ANSWER here: Link adds line breaks

I would like to note that, despite building websites for 26 years, I was equally mystified on how to change the formatting for RTF blocks, specifically those that are driven by the CMS.

The secret here that no one will tell you is that you have to edit a NON-CMS RTF block to change the properties of the CMS RTF block…

What I did was create a test page, add an RTF block, edit that, and presto, the CMS driven RTF elements (where you CANNOT select the link block to style) was updated to not wrap.

Incredibly frustrating with extremely poor documentation of this fact, hopefully this helps someone.

1 Like

This was exactly what I needed (and the only solution that actually understood how to sidestep the issue). Thanks so much Chris!