Website Construction

NulledBB, how'd you do this

Submitted by Noah, , Thread ID: 12607

Thread Closed
Noah
Member
Level:
0
Reputation:
25
Posts:
121
Likes:
10
Credits:
7
09-11-2015, 08:26 PM
#1
[Image: xHrXmii.png]

I am trying to get my line to break after a certain number of letters like you have in your sidebar, I am used to IPB so when I moved over to Mybb I noticed that it did not automatically break your words after a certain length, so how could I go about to doing this. Thank you in advance

RE: NulledBB, how'd you do this

Coin
Level:
0
Reputation:
59
Posts:
1.13K
Likes:
54
Credits:
243
09-11-2015, 08:36 PM
#2
You can do that with CSS Smile

RE: NulledBB, how'd you do this

Noah
Member
Level:
0
Reputation:
25
Posts:
121
Likes:
10
Credits:
7
OP
09-11-2015, 08:59 PM
#3
09-11-2015, 08:36 PM
Kill Wrote:
You can do that with CSS Smile

Please explain

RE: NulledBB, how'd you do this

Aoki
retired
Level:
83
Reputation:
348
Posts:
7.89K
Likes:
2.3K
Credits:
1.7K
09-11-2015, 09:03 PM
#4
Code:
word-break: break-word;

RE: NulledBB, how'd you do this

linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
09-11-2015, 10:23 PM
This post was last modified: 09-11-2015, 10:25 PM by linkzy
#5
PHP

$string = substr($string,0,20).'...';

n of course

word-break: break-word;


after 20 letters itll put .... infront
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |


RE: NulledBB, how'd you do this

Noah
Member
Level:
0
Reputation:
25
Posts:
121
Likes:
10
Credits:
7
OP
10-11-2015, 10:37 AM
#6
09-11-2015, 10:23 PM
Believer Wrote:
PHP

$string = substr($string,0,20).'...';

n of course

word-break: break-word;


after 20 letters itll put .... infront

Thank you, I already knew about word-break but that was not it so eventually I asked a friend for help and he sent me a very similar code to yours and now it works, thank you for elaborating!

RE: NulledBB, how'd you do this

linkzy
No pressure, no diamonds
Level:
0
Reputation:
181
Posts:
5.34K
Likes:
341
Credits:
54
10-11-2015, 02:42 PM
#7
10-11-2015, 10:37 AM
Noah Wrote:
09-11-2015, 10:23 PM
Believer Wrote:
PHP

$string = substr($string,0,20).'...';

n of course

word-break: break-word;


after 20 letters itll put .... infront

Thank you, I already knew about word-break but that was not it so eventually I asked a friend for help and he sent me a very similar code to yours and now it works, thank you for elaborating!

You are welcome mate. Enjoy
| A | v4hl| Addicted | Senpai | Sui | Sensei | H | fdigl |



Users browsing this thread: 1 Guest(s)