denniss
denniss

Reputation: 17589

Div gets re-positioned when browser window is resized

I have several divs that I set up to be positioned next to each other. However, when I resize the window to be smaller, the 2nd and third div from the left drops below the first one. How do I make it so that instead of dropping underneath the first div, the browser would show she horizontal scroll bar?

Upvotes: 0

Views: 164

Answers (2)

kheya
kheya

Reputation: 7612

Do you have fixed width set to these divs?

Please post your html code of the divs

Either you need to put a width to the parent container div as suggested by Arun or post your html to let us see

Upvotes: 1

Arun Kumar Arjunan
Arun Kumar Arjunan

Reputation: 6857

Set the width of the parent div to some value.

<div style="width: 700px">
  <div>Content1</div>
  <div>Conten2</div>
  <div>Conten3</div>
</div>

Upvotes: 1

Related Questions