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

How can I apply different styles to different DIVs

0 views
Skip to first unread message

Sam

unread,
Aug 29, 2002, 11:35:09 AM8/29/02
to
Hi,

Is there a way for me to come up with 2 different styles for DIV tags and be
able apply different styles to different DIV tags. For example I want to use
one style for a DIV tag that I use for titles - I usually call it ID=Title -
and another style for a DIV tag I use for the main (ID=Main) section of the
page. Thanks.

Sam


Vidar Petursson

unread,
Aug 29, 2002, 12:07:35 PM8/29/02
to
Hi

<style>
.myDiv1{color:#ff0000}
.myDiv2{color:#00ff00}
</style>

<div class="myDiv1">bla</div>
<div class="myDiv2">bla</div>

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
http://www.icysoft.com/
The...@icysoft.com
icy...@vortex.is
==============================
No matter where you go there you are
==============================
"Sam" <s...@globalwebcentral.com> wrote in message
news:e3l7zG3TCHA.1496@tkmsftngp11...

Sam

unread,
Aug 30, 2002, 11:54:50 AM8/30/02
to
Great. Thank you Vidar.

Sam

"Vidar Petursson" <the...@icysoft.com> wrote in message
news:#MS5wa3TCHA.2692@tkmsftngp11...

0 new messages