forum

Home / DeveloperSection / Forums / Make text in paraghapghs in div overflow instead of new lines

Make text in paraghapghs in div overflow instead of new lines

Anonymous User187603-Apr-2013
Hi Expert!

I have several pretty longs lines in a paragraph:

<div style="overflow: auto"> 
    <p> 
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccc
    </p> 
    <p> 
        aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccc
    </p> 
</div>
and window width less that width of the paragraph (a's + b's + c's). Currently scroll will appear only if width of any of components (a, b, or c) is more 

that width of the window and over components are carried to the new lines. I want contents of each paragraph appear on the same line with a scroll. How can 

I treat each paragraph as a string, so contents of the paragraph is treated like a single line?

Thanks in advance! 

Updated on 03-Apr-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By