white-space: nowrap not working
Hi,
I can’t get this to work in Pagebuilder, a row with SiteOrigin Editor widget.
<span style="white-space: nowrap;"><em><a href="/link">Read more >>;</a></em></span>
It works in a simple html file. Nesting problem?
Thanks!
This is our free support forum. Replies can take several days.
Need fast email support? Get SiteOrigin Premium
Replies
13Hi ERobert
Can you bring me up to speed quickly? Why would you need the nowrap there?
Try this instead:
Hi,
I don’t want the read more link broken into two lines. Looks strange.
The suggested solution did not work.
This works perfect i a separate HTML document.
Why not inside WP/SiteOrigin page builder?
And the >> is coded like this
Like this &+g+t+; &+g+t+; with no plus.
This seems cool for me in the SiteOrigin Editor widget in the Text tab:
http://pastebin.com/nSC8Vskw
Are those angles too small for what you want?
Sorry this is not the problem.
The problem is that the words get broken into two lines or more depending on the width of the browser.
This I want to avoid. Nowrap style works in a separate html-document but not in the WP/Siteorigin Editor.
Can we see the problem live?
Same site:
http://www.hudvardskallan.se
The linked text in the three squares.
Thanks!
The squares should be centered on the page and the linked blue text not on two lines, no wrap.
http://www.re-design.se/center+nowrap.png
Thanks!
Okay now I see the problem.
After adding the span with style nowrap in WordPress and then looking at the
source code its gone and looks like this. Just an span with no style.
It seems that styles added in the text mode and not available under visual mode
are gone when saved.
I solved it by adding a class nowarp to the widget and then add it to the a-tag in the custom css.
.nowrap a {white-space: nowrap;}Thanks!
Nicely done. Thanks for sharing :)
Replies on this thread are closed.
Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.