---
title: "Make text in paraghapghs in div overflow instead of new lines"  
description: "Make text in paraghapghs in div overflow instead of new lines"  
author: "Anonymous User"  
published: 2013-04-03  
updated: 2013-04-03  
canonical: https://www.mindstick.com/forum/705/make-text-in-paraghapghs-in-div-overflow-instead-of-new-lines  
category: "css-css3"  
tags: ["css-css3"]  
reading_time: 1 minute  

---

# Make text in paraghapghs in div overflow instead of new lines

Hi [Expert](https://www.mindstick.com/articles/13120/an-expert-financial-advice-will-improve-your-finances)!\
I have several pretty longs lines in a paragraph:\
<div [style](https://www.mindstick.com/articles/126300/apa-citation-style-get-to-know-about-it-for-your-next-assignment)="[overflow](https://www.mindstick.com/interview/1711/what-is-overflow-properties-in-css): [auto](https://www.mindstick.com/forum/33810/remote-view-in-android-auto-cancel-custom-notification)"> <p> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccc </p> <p> aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb cccccccccccccccccccccccccccccccc </p> </div>and [window](https://www.mindstick.com/forum/161285/how-does-the-window-console-object-work-in-javascript) width less that width of the paragraph (a's + b's + c's). Currently scroll will appear only if width of any of [components](https://www.mindstick.com/blog/74096/understanding-the-role-of-some-integral-ac-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](https://www.mindstick.com/articles/1527/string-split-in-c-sharp), so contents of the paragraph is treated like a single line?\
Thanks in [advance](https://www.mindstick.com/blog/33258/jee-mains-and-jee-advance-exams)!

## Replies

### Reply by AVADHESH PATEL

Hi Jayprakash!\
try this way, i hope it resolve your problem\
p { white-space: nowrap; overflow: auto}


---

Original Source: https://www.mindstick.com/forum/705/make-text-in-paraghapghs-in-div-overflow-instead-of-new-lines

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
