What is your DOCTYPE?
I suspect your uppercase DIV and H2 is causing you some problems if the
DOCTYPE makes the browser render the code in "strict".

It always helps if at all possible to provide a direct link to a page
and a direct link to the CSS. 

Lynda Peach


-----Original Message-----
From: Robert Tilley [mailto:[EMAIL PROTECTED] 
Sent: Thursday, September 21, 2006 12:51 PM
To: [email protected]
Subject: [css-d] Why doesn't this padding-left work?

Please bear with me, as this question is from a CSS beginner.  I am
using the
following:

        <DIV id="content">
                <H2>CSS Information</H2>
                Lorem ipsum, etc.
        </DIV>

This displays, in large text, "CSS Information".  I wish to indent the
heading, so I write:

        <DIV id="content">
                <H2 style="padding-left: 5%">CSS Information</H2>
                Lorem ipsum, etc.
        </DIV>

The above displays the same as the top code.  "CSS Information" has no
padding on left side (indention).  Can someone tell me how I'm
mis-reading  the W3C specs?

Thanks, Bob

-------------------------------------------------------

--
Why is it that we rejoice at a birth and grieve at a funeral?  It is
because we are not the person involved.
                -- Mark Twain, "Pudd'nhead Wilson's Calendar"

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7b2 testing hub -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to