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.

Adding new div tag pushes box down

Featured Replies

Ive got 2 boxes that look normal. But i want to add a 3rd but when i add the extra box is pushes one of the others down. Ive attached a picture of the section i want brought up. also the css for all 3 boxes.

 

.columnLeft {
float: left;
width: 560px;
height: auto;
margin: 10px;	
padding: 0px;
	-moz-box-shadow: 3px 3px 4px #fff; /* Firefox */
-webkit-box-shadow: 3px 3px 4px #fff; /* Safari/Chrome */
box-shadow: 3px 3px 3px #fff; /* Opera and other CSS3 supporting browsers */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#fff')";/* IE 8 */
: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#fff');/* IE 5.5 - 7 */ 
}
.columnLeft1 {
float: left;
width: 560px;
height: auto;
margin: 10px;	
padding: 0px;
float: left;
	-moz-box-shadow: 3px 3px 4px #fff; /* Firefox */
-webkit-box-shadow: 3px 3px 4px #fff; /* Safari/Chrome */
box-shadow: 3px 3px 3px #fff; /* Opera and other CSS3 supporting browsers */
-ms-filter: "progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#fff')";/* IE 8 */
: progid:DXImageTransform.Microsoft.Shadow(Strength=4, Direction=135, Color='#fff');/* IE 5.5 - 7 */ 
}

.columnRight {
float: left;
width: 280px;
height: auto;
margin: 10px;	
padding: 5px;
text-align: center;
}

post-4693-0-28503700-1323988050_thumb.jpg

Link? HTML markup?

 

You have three div styles with a float, so they want to go side by side but your image shows the images one above the other, so you shouldn't need float in that case. I'm assuming that your three styles all refer to the images on the right.

 

It may be better to put all three (without float) inside a containing div which may need a float to set it on the right of your other content.

 

Make sure that the containing div has the total width of the widest child div plus any side padding, side margin and side border.

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.