• support@answerspoint.com

Horizontally center a div in a div

1740

How can I horizontally center a div within a div using CSS (if it's even possible)?

The outer div has 100% width:

<div id="outer" style="width:100%">  
  <div id="inner">Foo foo</div>
</div>

 

  • CSS

  • asked 8 years ago
  • B Butts

0Answer


Your Answer

    Facebook Share        
       
  • asked 8 years ago
  • viewed 1740 times
  • active 8 years ago

Best Rated Questions