SitePoint Sponsor |
|
User Tag List
Results 1 to 8 of 8
Thread: multiple classes for one element
-
Feb 4, 2004, 08:33 #1
- Join Date
- Apr 2003
- Posts
- 332
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
multiple classes for one element
How do I use multiple classes for one element? Vinnie answered this question 2 months ago but I can't find the thread.
-
Feb 4, 2004, 08:59 #2
- Join Date
- Nov 1999
- Location
- Mechanicsburg, PA
- Posts
- 7,294
- Mentioned
- 123 Post(s)
- Tagged
- 1 Thread(s)
something like this?
<p class="class1 class2 class3">this is some text</p>Dave Maxwell - Manage Your Site Team Leader
My favorite YouTube Video! | Star Wars, Dr Suess Style
Learn how to be ready for The Forums' Move to Discourse
-
Feb 4, 2004, 09:38 #3
Dave's right
-
Feb 4, 2004, 10:00 #4
- Join Date
- Apr 2003
- Posts
- 332
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
I didn't ask the question correctly.
.aclass {
color: #660000;
}
.bclass {
font: small Arial, san-serif;
}
</style>
<body>
<p class="aclass, bclass">Vinnie speaks clearly</p>
</body>
Trouble is, my syntax is off. Lead me to Vinnies previous reply and I won't lose the printed copy, this time. The reply included parameters. Thanks.
-
Feb 4, 2004, 11:09 #5
Don't separate the class names with commas. You're only supposed to put a space between each class name. Your paragraph should look more like this:
HTML Code:<p class="aclass bclass">Vinnie speaks clearly</p>
-
Feb 4, 2004, 12:11 #6
What browsers dont support multiple classes?
-
Feb 4, 2004, 12:13 #7
Originally Posted by Dangermouse
-
Feb 4, 2004, 20:53 #8
- Join Date
- Apr 2003
- Posts
- 332
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Ahhh! Works well in IE5, thank you again.
Bookmarks