Outer Court

Tech - Posts to comp.infosystems.www.*

From: "Philipp Lenssen" <phil@mrinfo.de>
Newsgroups: comp.infosystems.www.authoring.html
Subject: Re: How to revert back to default borwser style for elements after CSS already defined
Date: Wed, 5 Dec 2001 17:10:28 +0100
Message-ID: <9ulgr1$s88$1@swifty.westend.com>
"BG" <blind_guardian@my-deja.com> wrote in message
news:975e0587.0112050751.57085fb9@posting.google.com...
>..
> For example, I may have a style defined for h3 elements but for 1
> particular h3, I need to have the browser ignore the style defined
> there and use the style that it would ordinarily display the h3 as if
> there was no definition for the h3.
>..

You should specify the original h3-style so that it will only select
h3-elements of a certain class.
All the user-h3 has to do then is to not use that class.

You could also inherit by using a div-wrapper, in case you don't want to
include classes in each author-h3.

For example, in the HTML:

    <div class="myStyle">
        <h3>Text in my style</h3>
        <p>...</p>
    </div>
    <div class="userStyle">
        <h3>Text in user Style</h3>
    </div>

And the CSS:
    .myStyle h3
    {
        letter-spacing: 2px;
        /* etc. */
    }

Depending on the CSS-property, there are also the values "inherit",
"normal", "auto" or "none" (no quotes).

--
Philipp Lenssen
M+R Infosysteme
http://www.mrinfo.de





 
Basic
Goodies
Design
Tech
Email