Line wraps (words and URLs)
Liquid Code :: Coding Factory :: Css
Page 1 of 1 • Share
Line wraps (words and URLs)
Guest- Guest
Sometimes words can get too long to be held by the postbody (the actual posts on your forum). What happens next is that your post will extend out of sight on the right and that the totality of the word isn't visible any longer. To prevent this, we can use the CSS3 word-wrap property. Use the following code for that:
[css]
To do the same for URLs, for instance search results that hold long URLs, just paste this line into your CSS:
[css]
[css]
- Code:
.postbody {word-wrap: break-word;}
To do the same for URLs, for instance search results that hold long URLs, just paste this line into your CSS:
[css]
- Code:
.postbody a{word-break: break-all;}
Liquid Code :: Coding Factory :: Css
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
|
|