Hi,

Can you try like this!

<style type="text/css">
.class1 { height:auto; width:300px; margin:0px auto;
background-color:#f3f3f3; border:1px solid #a6a6a6; padding:10px; }
.class2 { height:auto; width:100px; margin:0px auto; border:1px solid #f50;
padding:10px;}
</style>

<div class="class1">
<div class="class2">Center, middle</div>
</div>
rEgArDs,
Hariharan. K



2009/12/11 Алексей Лиходиевский <bezb...@gmail.com>

> Hi!
> You can make:
>
> <div style="width:800px">
>   <div style="margin:0 auto; width:400px">inner div</div>
> </div>
>
>
>  2009/12/11 Ronald Kyamagero <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
>> www.resellerspanelafrica.com
>> www.realtechosting.com
>>
>> Social Networks:
>> 1. http://www.linkedin.com/in/ronaldkyamagero     2.
>> http://twitter.com/Kyamagero     3. 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)
>>
>>
>> *******************************************************************
>> 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
> *******************************************************************
>



-- 
Hariharan. K
Web Designer


*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: memberh...@webstandardsgroup.org
*******************************************************************

Reply via email to