I think it's the min width that's messing it up.
Deena
2009/12/11 Ronald Kyamagero
> I see,
>
> thanks
>
> However, when I use 100% on the outer div and a fixed width for the inner
> width on the code you sent me, it works. How come it does not work on mine?
>
> Thanks again,
>
> Ronald
>
> 200
I see,
thanks
However, when I use 100% on the outer div and a fixed width for the inner
width on the code you sent me, it works. How come it does not work on mine?
Thanks again,
Ronald
2009/12/11 Ghodmode
> On 11/12/09 23:56, Ronald Kyamagero wrote:
>
> Hi all,
>
> Thanks for your help. It
On 11/12/09 23:56, Ronald Kyamagero wrote:
Hi all,
Thanks for your help. It works!
However, when I try to incorporate it into my site, it does not work.
Hi Ronald,
I think it's the computed width. Since you're using a computed width
for your containing block (100%) rather than a fixed width
On 11/12/09 22:04, ??? wrote:
Hi!
You can make:
inner 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 (wi
Hi all,
Thanks for your help. It works!
However, when I try to incorporate it into my site, it does not work.
Here is my code:
body {
text-align: center;
min-width: 980px;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 14px;
color: #525252;
background-col
Hi,
Can you try like this!
.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;}
Center, middle
rEgArDs,
Hariharan. K
2009/12/11 Ал
Hi!
You can make:
inner div
2009/12/11 Ronald Kyamagero
> 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
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.reselle