Is is possible to, in a linked css sheet to define a variable and
assign the color blue, for instance to it? Then you could use this as
the value for say, any property that takes a color.
I know you can do:
h1, h2, h3, h4 {color:blue}
to define the color blue for all those tags but I want to use the same
color for the "color" property, the "background" property, the
"border-color" property, etc. So if you could define a variable for
this color, then you could just insert it instead of the value "blue"
in each of the property's value parameters. Then when you wanted to
change the color you could just change it where you defined the
variable.
I've looked alot but can't find anything on this but would think this
would be possible?!?
Thanks in advance,
Kent 2 2354 ke***@yahoo.com (Kent K) wrote: Is is possible to, in a linked css sheet to define a variable and assign the color blue, for instance to it?
No. And there probably won't be, as judged from the discussions on the
www-style list. The general trend among the people who work on CSS
specifications is that authors are supposed to use authoring tools like
preprocessors for such things.
--
Yucca, http://www.cs.tut.fi/~jkorpela/
Jukka K. Korpela: ke***@yahoo.com (Kent K) wrote:
Is is possible to, in a linked css sheet to define a variable and assign the color blue, for instance to it?
No. And there probably won't be, as judged from the discussions on the www-style list. The general trend among the people who work on CSS specifications is that authors are supposed to use authoring tools like preprocessors for such things.
One convenient way is to use PHP (or some similar server side system) for
stylesheets (making sure the PHP code sets the correct media type, of
course).
--
Bertil Wennergren <be******@gmx.net> <http://www.bertilow.com> This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Alexander Zatvornitskiy |
last post by:
Hello All!
I'am novice in python, and I find one very bad thing (from my point of view) in
language. There is no keyword or syntax to declare variable, like 'var' in
Pascal, or special syntax in...
|
by: Klaus Johannes Rusch |
last post by:
Is the following code valid and supported by current implementations?
function somename() {
this.show = function () { document.write("somename called") }
}
var somename = new somename();...
|
by: sneill |
last post by:
How is it possible to take the value of a variable (in this case,
MODE_CREATE, MODE_UPDATE, etc) and use that as an object property name?
In the following example I want 'oIcon' object to have...
|
by: James A. Donald |
last post by:
I am contemplating getting into Python, which is used by engineers I
admire - google and Bram Cohen, but was horrified to read
"no variable or argument declarations are necessary."
Surely that...
|
by: Jim Moon |
last post by:
Hi.
I'm curious about this syntax:
<variable>=function(){...}
I'm not finding a definition of this syntax, but I see it used at this
website:...
|
by: TNGgroup |
last post by:
Hi,
a Simple Question, I have some code at my form, the code in the form is
calling a certain module and execute some code, a certain variable is set to
strTemp. but when de module is done. I...
|
by: Joe Attardi |
last post by:
Over the weekend I attended a session on JavaScript at the No Fluff
Just Stuff conference and learned an interesting quirk that I wanted to
ask a question about..
Take this code:
x = 5;
...
|
by: Jeff |
last post by:
Still new to vb.net in VS2005 web developer...
What is the proper/standard way of doing the following - setting the value
of a variable in one sub and
calling it from another? E.g., as below....
|
by: Florian Loitsch |
last post by:
hi,
What should be the output of the following code-snippet?
===
var x = "global";
function f() {
var x = 0;
eval("function x() { return false; }");
delete x;
alert(x);
}
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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...
|
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
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
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...
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers,...
|
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: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |