Mohammed Mohammed
Mohammed Mohammed

Reputation: 413

resizing window html

I'm trying to build a simple html page which include some text paragraph, during resizing the window I want the text to appear under each other in order not to be hidden by the window. for example,

the text is

AAAABBBBBCCCCDDDDEEEEFFFFGGGG.

and after resizing the window I want it to appear something like

AAAABBBBBCCC
CDDDDEEEEFFF
FGGGG.

Upvotes: 0

Views: 204

Answers (1)

Zoltan Toth
Zoltan Toth

Reputation: 47657

use word-wrap property and set it to break-word. ex,

<p style="word-wrap: break-word">AAAABBBBBCCCCDDDDEEEEFFFFGGGG</p>

Upvotes: 2

Related Questions