Home › Forums › CSS › Center wrapper with flaoting elements › Reply To: Center wrapper with flaoting elements
August 30, 2014 at 5:01 am
#181145
Participant
Here’s a quick way using your code.
http://codepen.io/soren-tree/pen/yAFJE
To keep things fluid, instead of a fixed width (124px) on the floated divs I’ve used a percentage (25%).
However you build this, don’t forget to clear floated elements by adding a “clear” class to the parent element (see the codepen CSS for example)