-3

I was wondering how to center two images that are side by side? Here is my code:

div#allen {
float: left;
padding: 0px 27px 0px 0px;
}

div#buckshill {
float: left;
padding: 0px 27px 0px 0px;
}

div#harvest {
float: left;
padding: 0px 27px 0px 0px;
}

I tried putting a div around all images called "div id="floorplans" and used margin:0 auto but that didn't do the trick

Website: http://www.meridianridgect.com/floor-plans/

1 Answers1

0

Here is an example for you that should work. If you change the width of the inner div to whatever width of the objects you need to center, it should center anything.

https://jsfiddle.net/qkd5cm6a/

The code to center it:

#inner {
  width: 400px;
  margin: 0 auto;
}
Taylor
  • 733
  • 7
  • 18