Line wraps (words and URLs)

View previous topic View next topic Go down

Line wraps (words and URLs)

Post by Guest on 2/1/2015, 6:21 pm


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]
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;}

Back to top Go down

View previous topic View next topic Back to top

- Similar topics

Permissions in this forum:
You cannot reply to topics in this forum