On 2008-05-06, Butch61 <ContactUs@[EMAIL PROTECTED]
> wrote:
><snip>
>>
>> A URL would be helpful.
>
> www.hotlinecomputing.com/wsls/index.html
>
> Click on the "design your day" heart.
> The paragraph that has "In order to..." is just text in the <div>.
> The paragraph that has "If you have any questions..." is in a <p> with
> no formatting.
The different gaps on the left are just because all the text is centered
as Gus pointed out.
>
> The css for the <div class=introcenter> is
> div.introcenter
> {
> position: absolute;
> left: 40px;
> top: 80px;
> width: 90%;
> font-size: small
> }
>
> Why wouldn't that css code be inherited by everything inside the <div>
> that doesn't have inline formatting?
Only some properties are inherited. Look at this table:
http://www.w3.org/TR/CSS21/propidx.html
Position, left, top and width are not inherited. Font-size is.
So the P gets whatever the "cascade" gives it, which, if you haven't set
anything, is basically whatever's in the default stylesheet.
Since the default stylesheet usually doesn't set position, left, top or
width for P, they will get their "initial values", also in that table,
which should be static, auto, auto and auto.


|