Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old March 5th, 2007, 05:35 PM
deduction@gmail.com
Guest
 
Posts: n/a
Default CSS Assing one class to another.

How do I assign one class to another?

Such as

..class_a
{
.class_b
}


And the property of a class to another:

..class_a{
color: .class_b.color;
}

Of course neither work.

  #2  
Old March 5th, 2007, 05:45 PM
Rik
Guest
 
Posts: n/a
Default Re: CSS Assing one class to another.

deduction@gmail.com <deduction@gmail.comwrote:
Quote:
How do I assign one class to another?

You don't. Either give the element both classes, or define the css like:
..class_a, .class_b{color:#000;}
or possibly make the css-file with a server side script, allowing you to
change a color in one location only.

Has this been a homework assignment that this awkward question has been
asked twice within a day?

--
Rik Wasmus
Posted on Usenet: any site claiming this as original content or me as an
contributing member is stealing content.
Ask Smart Questions: http://tinyurl.com/anel
  #3  
Old March 5th, 2007, 06:15 PM
deduction@gmail.com
Guest
 
Posts: n/a
Default Re: CSS Assing one class to another.

On Mar 5, 11:39 am, Rik <luiheidsgoe...@hotmail.comwrote:
Quote:
deduct...@gmail.com <deduct...@gmail.comwrote:
Quote:
How do I assign one class to another?
>
You don't. Either give the element both classes, or define the css like:
.class_a, .class_b{color:#000;}
or possibly make the css-file with a server side script, allowing you to
change a color in one location only.
>
Has this been a homework assignment that this awkward question has been
asked twice within a day?
>
--
Rik Wasmus
Posted on Usenet: any site claiming this as original content or me as an
contributing member is stealing content.
Ask Smart Questions:http://tinyurl.com/anel
I know I saw it some where before. Some type of reference syntax. It
exists.

  #4  
Old March 5th, 2007, 06:15 PM
Rik
Guest
 
Posts: n/a
Default Re: CSS Assing one class to another.

deduction@gmail.com <deduction@gmail.comwrote:
Quote:
On Mar 5, 11:39 am, Rik <luiheidsgoe...@hotmail.comwrote:
Quote:
>deduct...@gmail.com <deduct...@gmail.comwrote:
Quote:
How do I assign one class to another?
>>
>You don't. Either give the element both classes, or define the css like:
>.class_a, .class_b{color:#000;}
>or possibly make the css-file with a server side script, allowing you to
>change a color in one location only.
>>
>Has this been a homework assignment that this awkward question has been
>asked twice within a day?
>>
>
I know I saw it some where before. Some type of reference syntax. It
exists.
Not in pure css.

Please don't quote signatures.
--
Rik Wasmus
Posted on Usenet: any site claiming this as original content or me as an
contributing member is stealing content.
Ask Smart Questions: http://tinyurl.com/anel
 

Bookmarks

Thread Tools

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles