Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 08-17-2005, 12:52 PM Css multiple classes
Experienced Talker

Posts: 42
Trades: 0
hey
How can a div be in multiple classes? I've tried class="class1,class2", but it doesn't seem to work.

cheers
__________________

Please login or register to view this content. Registration is FREE
thepersonof is offline
Reply With Quote
View Public Profile Visit thepersonof's homepage!
 
 
Register now for full access!
Old 08-17-2005, 01:25 PM
TwiztedFake's Avatar
Skilled Talker

Posts: 77
Location: Central, IL
Trades: 0
I've done that with setting one class as an ID for example:

Code:
#main {
   width: 150px;
   float: left; }

.center {
   text-algin: center }

The tag then would be <div id="main" class="center">
__________________

Please login or register to view this content. Registration is FREE

Last edited by TwiztedFake; 08-17-2005 at 01:25 PM.. Reason: edit.
TwiztedFake is offline
Reply With Quote
View Public Profile Visit TwiztedFake's homepage!
 
Old 08-17-2005, 04:41 PM
chrishirst's Avatar
Missing! presumed drunk.

Posts: 41,517
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
use a space to separate the class names

class="first second"
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
chrishirst is offline
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 08-21-2005, 08:20 AM
bez
bez's Avatar
Skilled Talker

Posts: 53
Trades: 0
hhmmm, thats interesting. cheers chris
bez is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Css multiple classes
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.44021 seconds with 12 queries