Re: FN-FORUM: Css horizontal alignment (mark II)
date posted 3rd September 2007 15:08
On 03/09/2007 15:22, Tony Crockford wrote:
>
>
> On 3 Sep 2007, at 15:07, Martin Wheatley wrote:
>>>
>>
>> Looks fine on firefox, you might want (note the px):
>>
>> margin: 0px auto;
>> text-align: center;
>>
>> to cover most browsers.
>
> zero value attributes don't need dimensions.
>
> margin: 0 auto; is fine AIUI
>
>
>
It is optional but I feel it's good practice to always put the units in,
if you get into the habit of doing it all the time you're less likely to
run into problems. He also had 0pt in his stylesheet whilst it is a
valid unit of size and would have the desired effect it's probably not
what he wanted, which is why I said px ;)
Martin