Quoting Abyss <info@abyss.ws>:
Hi all,
I wish to have a set of radio buttons aligned center in a page, but
so that the buttons aligned in the center
here is the tabled version...
http://www.abyss.ws/sitecheck/abyss/radiobuttons.png
how do i achieve this in css?
I tried <div style="margin-left: auto; margin-right: auto;
width:13em;text-align:center;">
around it but that didn;t work..it only moved it over a little....
Thanks heaps..
Abyss
You tried to achieve centering with the following statements:
margin-left: auto; margin-right: auto;
However, there is a well-known trick of using negative values. See the simple
demo at:
http://tom.me.uk/2002/5/css-center.html
HTH,
Roy
--
Roy Schestowitz
http://schestowitz.com
______________________________________________________________________
css-discuss [css-d@lists.css-discuss.org]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
|