Jump to content

Problem with css character limit border thing idk help.


Minimeallolla

Recommended Posts

http://www.mysite.giacjr.dino-hosting.net/

 

see for yourself but you have to register and log in to see the comments.

if you do i think more than 36 characters without spacing it overflows out of the box and is chat lol how do i fix that?

I think you are going to find not many people are going to do this, after all, there aren't many 36 character words out there (in English at least). And spammers are using specific keywords themselves.

 

Anyways, if you really want to do this, you will need some sort of serverside language. I don't believe it's possible through CSS alone.

wordwrap()[/code] may be what you need.

 

$long_string = 'ThisIsAnUnusuallyLongStringOfWordsThatIsThrownTogether.';
echo wordwrap( $long_string, 35, "<br>\n", true);

 

Returns:

ThisIsAnUnusuallyLongStringOfWordsT

hatIsThrownTogether.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.