Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

how do I override a css stylesheet with css?

0 views
Skip to first unread message

knickfan

unread,
Jun 29, 2002, 11:26:59 PM6/29/02
to
Hi,

I was wondering how I could override my stylesheet with css within the
document. Like part of the document would use the style sheet and another
part would use a different style.

Thanks in advance :-)


PeterMcC

unread,
Jun 30, 2002, 4:43:23 AM6/30/02
to
knickfan wrote:
> Hi,
>
> I was wondering how I could override my stylesheet with css within the
> document. Like part of the document would use the style sheet and
> another part would use a different style.

Styles defined within the <head> will override styles within the stylesheet
and styles within the <body> will override styles within the <head>.

The (imho) tidier approach is to give your styles different classes and
apply them as appropriate to the different sections of your document.

http://www.w3schools.com/css/css_intro.asp

--
PeterMcC

0 new messages