On 11/12/09 22:04, ??????? ???????????? wrote:
Hi!
You can make:
<div style="width:800px">
<div style="margin:0 auto; width:400px">inner div</div>
</div>
That should work.
I think the trick is that the containing block has to have a fixed
width. If only has a width computed by determining the width of the
contents, I don't think that elements centered within it (with margin: 0
auto;) will actually center.
I would've given you credit by name but... well can you suggest a
nickname you'd like to use, for those of us who are alphabet-challenged :)
--
*Vince Aggrippino* <-- some Americans consider this name hard to say :)
a.k.a. Ghodmode
www.ghodmode.com <http://www.ghodmode.com>
2009/12/11 Ronald Kyamagero <rkyamag...@gmail.com
<mailto:rkyamag...@gmail.com>>
Can someone Help Center Horizontally a div in a div?
I can center a div horizontally in the body. But I find problems
horizontally centering a div within a div.
Your help will be greatly appreciated.
Thanks,
Ronald
--
Tel: +256 414 466365
Cell: +256 782 756110
www.realtechgrp.com <http://www.realtechgrp.com>
www.resellerspanelafrica.com <http://www.resellerspanelafrica.com>
www.realtechosting.com <http://www.realtechosting.com>
Social Networks:
1. http://www.linkedin.com/in/ronaldkyamagero 2.
http://twitter.com/Kyamagero 3. facebook.com/ronald.kyamagero
<http://facebook.com/ronald.kyamagero>
Are you in need of an efficient web solution? Real Technolgies
Group (Real Technologies) have the solution tailored to your needs.
Real Technologies is a one stop for your web development, web
hosting, internet marketing, graphics and animation, and
architectural CAD needs. Following your requirements, we
consistently meet your expectations and deliver on time yet keep
within your budget. (www.realtechgrp.com <http://www.realtechgrp.com>)
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
<mailto:memberh...@webstandardsgroup.org>
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************