css selector as alias of another

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • JakDaniel

    css selector as alias of another

    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.cs s" />
    <link rel="stylesheet " type="text/css" href="style2.cs s" />
    ....
    <span class="test1">t est1</span>
    <span class="test2">t est2</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:.t est_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

Working...