I have to put two div side by side by side regardless of screen size. Lets say i have a main-div. Inside it two div. In the left-div i have an image. In the right-div i have some <p> elements.
Now image will be in left and these <p>'s will be on right. I can do this by
.left-div {
float: left;
margin-right: 10px;
}
.right-div {
float: left;
}
Lets say one <p> on the right side has a long sentence. When i shrink the browser to see what happens in smaller display the right-div gets underneath of left-div. And then long sentence in the <p> starts to get wrapped as i shrink the browser more.
I want two div to be side by side and the texts in the right to get wrapped as i start shrinking the browser.