This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Stylesheets > March 2007 > css selector as alias of another





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author css selector as alias of another
JakDaniel

2007-03-28, 7:18 pm

is it possible, create a selector as alias of another selector...
(maybe) in another stylesheet file?

ex:

html page
....
<link rel="stylesheet" type="text/css" href="style1.css" />
<link rel="stylesheet" type="text/css" href="style2.css" />
....
<span class="test1">test1</span>
<span class="test2">test2</span>
....

style1.css
....
test1{
font-size: 20px;
}
....

style2.css
....
test2{
# syntax to get style's information from another selector in another
stylesheet (ex: .test in style1.css file)
}
....

another way that I have found is this below...

..test_alias:.test_style{
}

..test_style{
color: #000000;
font-size: 40px;
font-weight: bold;
}

but it don't work... or my syntax is incorrect... you can help me?


thx

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews