December 15, 201114 yr 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; }
December 16, 201114 yr 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