On 9 June 2010 20:52, TriState Advantage, Kris Jacobson
<[email protected]> wrote:
>
> ----- Original Message ----- From: "Lesley Binks" <[email protected]>
> To: "TriState Advantage, Kris Jacobson" <[email protected]>
> Cc: <[email protected]>
> Sent: Wednesday, June 09, 2010 1:02 PM
> Subject: Re: [css-d] help needed
>
>
>> I'm no CSS expert by any means but in your css file you have
>> html, body     { color: black; font-size: medium; font-family: Arial,
>> Helvetica, Geneva, Swiss, SunSans-Regular; margin: 0px; padding: 0px }
>> body { color: black; font-size: medium; font-family: Arial, Helvetica,
>> Geneva, Swiss, SunSans-Regular; background-image:
>> url(graphics/graytile.gif) }
>>
>> As far as I can recall, you can shorten the second statement to
>> body {background-image: url(graphics graytile.gif)}
>>
>> because all the other styling will be inherited from the first
>> statement.  Repeating it might seem easier from a development
>> viewpoint but you make a maintenance problem in that you have the font
>> stack listed in more than one place so you have to repeat any changes
>> you might want to make.  That's just extra work.
>>
>> I would also add the generic sans-serif to the end of your font stack.
>>
>> I am not sure about later IEs but IE6 almost certainly needed a fudge
>> to centre properly
>>
>> You need
>>
>> body { text-align:center }
>>
>> and then correct your text alignment in the container div with :
>>
>> container { text-align:left}
>>
>> Hope that helps.  Please say if that fixes your problem.
>>
>> Regards
>>
>> Lesley
>>
> Thank you, but I think that is right. The template had text-align: center
> and I couldn't figure out why. Don't have time to test it now but will
> tomorrow and reply back if it does.
> As for the font statement, I thought I remembered from a class I took that
> you needed to do that to validate. I will have go back to my books and
> review this.
> Kris J
>
The body {text-align:center} is a trick to get IE to render centred
pages.  Otherwise IE won't display the body centred in the page.
This might be relevant for your reading :
http://css-discuss.incutio.com/wiki/Centering_Block_Element#Centering_an_entire_page.27s_contents

Regards

Lesley
______________________________________________________________________
css-discuss [[email protected]]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to