Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Boxes drop when browser width is narrowed

Featured Replies

Hi

 

I'm sure that this is a really basic and stupid question, but I've built a site in Dreamweaver with 5 divs across the middle of a #maincontent div.

 

When you view it in a browser the div boxes with images in them don't stay in a line if you narrow the browser, instead they drop down

Take a look here to see what I mean..

 

 

http://www.deverilljenkins.co.uk/test.html

 

All help gratefully received.

many thanks

Hi

 

I'm sure that this is a really basic and stupid question, but I've built a site in Dreamweaver with 5 divs across the middle of a #maincontent div.

 

When you view it in a browser the div boxes with images in them don't stay in a line if you narrow the browser, instead they drop down

Take a look here to see what I mean..

 

 

http://www.deverilljenkins.co.uk/test.html

 

All help gratefully received.

many thanks

 

have you tried creating an outer div with

 

<div style="display:inline">

 

and then for each of the boxs have you given a float position for each?

 

e.g: float:left

That may be because the containing div for all five div boxes hasn't got a width suitable to hold them all side by side. If the containing div is #maincontent, you already have a width: 1000px; in the stylesheet but delete display: inline (it works in my Firefox and IE7):-

#maincontent {               
height: 400px;
width: 1000px;
color: #660000;
border: thin none #ccc;
/*display: inline;*/
}

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.