Divs in footer not centered :/

Hey,

I want that divs, which are in footer div “apacia” appear not in left, but in the center of the page, tried align: center; or text-align: center; in parent div’s but didin’t helped.

Url: http://siauliaicity.lt/sokoladine%202/

Change this


#aphold {
  height: 168px;
  margin: 10px [COLOR="#FF0000"]0[/COLOR] 0;
  padding: 0;
  width: 778px;
}

to this


#aphold {
  height: 168px;
  margin: 10px [COLOR="#FF0000"]auto[/COLOR] 0;
  padding: 0;
  width: 778px;
}

Thanks for helping!

You’re welcome. :slight_smile:

I should have explained that if you want to center a block level element (like a div etc.) you need to give it a width (which you had) and then set its left and right margins to “auto”. So what you’ve ended up with is:

margin: 10px auto 0 auto
(top, right, bottom, left)

Those autos are for right and left, but the last one (for left) doesn’t need to be written, because if left out, it’s assumed to be the same as the right margin.

I just see the post but Ralph provided a correct code.