On a 1024×768 screen, I have 2 divs side by side centered on screen. If I resize the browser window, the second div drops below the first div. How do I stop this from happening:
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
One way is to add the
white-space: nowrap;style to the container<body>and add thewhite-space: normal;style to the two<div>s.