Click to See Complete Forum and Search --> : How to get two paragraphs next to each other


Markstar
02-12-2006, 02:01 PM
This might be a stupid question, but is there a way to have two sections filled with text next to each other, preferably with an adjustable width, and when the window becomes to small, the second section goes into the next line (like a line break).

Thanks in advance!

felgall
02-12-2006, 02:07 PM
Give each paragraph a width and then add float:left to the first paragraph. The second paragraph will then be moved to the right provided that there is room.

Markstar
02-12-2006, 04:05 PM
Ah, yes, that works, thank you! :)

P.S.: I had to do the float:left thing on both paragraphs though.