Posted by Andrew Cameron on 12/06/05 00:39
Ed Jay wrote:
> "Joker7" <sat_ring@hotmail.com> wrote:
>
>
>>Hi one and all,
>>
>>How to convert <div align="center"> to work in a css file .
>>
>
> Inline:
> <div style="margin-left:auto;margin-right:auto;">
>
> Or you can define a class in your style sheet:
>
> .XYZ {margin-left:auto;margin-right:auto;}
>
> then write your div as:
> <div class="XYZ">
Remember to tag the container with text-align: center for silly IE...
Andrew Cameron
[Back to original message]
|