473,394 Members | 1,813 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

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.

Mar 5 '07 #1
3 4721
Rik
de*******@gmail.com <de*******@gmail.comwrote:
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
Mar 5 '07 #2
On Mar 5, 11:39 am, Rik <luiheidsgoe...@hotmail.comwrote:
deduct...@gmail.com <deduct...@gmail.comwrote:
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.

Mar 5 '07 #3
Rik
de*******@gmail.com <de*******@gmail.comwrote:
On Mar 5, 11:39 am, Rik <luiheidsgoe...@hotmail.comwrote:
>deduct...@gmail.com <deduct...@gmail.comwrote:
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
Mar 5 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Mikko Ohtamaa | last post by:
Hi, I am quite new to Python, PythonCom and COM generally. As a former Java programmer, I have found Python's flexible ability to access native Win32, especially COM, very comfortable. However,...
3
by: Ryan Mitchley | last post by:
Hi I have a rather complicated class for performing matrix operations using complex arithmetic. I have written two classes, CComplexMatrix and CComplexMatrixTemp, and have been attempting to...
9
by: Cheney Stallman | last post by:
I have a class as following: class X { public: static X* Create() { return new X(); }
5
by: Chris | last post by:
Hi, I don't get the difference between a struct and a class ! ok, I know that a struct is a value type, the other a reference type, I understand the technical differences between both, but...
10
by: Vlad | last post by:
In the following code: unsafe class X { byte* _address; void test() { _address=(byte*)144220152; }
7
by: WXS | last post by:
Vote for this idea if you like it here: http://lab.msdn.microsoft.com/productfeedback/viewfeedback.aspx?feedbackid=5fee280d-085e-4fe2-af35-254fbbe96ee9...
61
by: Sanders Kaufman | last post by:
I'm wondering if I'm doing this right, as far as using another class object as a PHP class property. class my_baseclass { var $Database; var $ErrorMessage; var $TableName; var $RecordSet;...
16
by: Mike | last post by:
Hi, I have a form with some controls, and a different class that needs to modify some control properties at run time. Hoy can I reference the from so I have access to its controls and...
20
by: tshad | last post by:
Using VS 2003, I am trying to take a class that I created to create new variable types to handle nulls and track changes to standard variable types. This is for use with database variables. This...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.