Thread: css referencing

    #1
  1. No Profile Picture
    hitokiri battousai
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2003
    Posts
    38
    Rep Power
    11

    css referencing


    how can i make a new css subset that references to another 'class' type's data? like the .heading class will reference the font-color attribute in the .data class
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Intermediate (1500 - 1999 posts)

    Join Date
    Nov 2001
    Posts
    1,882
    Rep Power
    19
    I don't think you can and why would you want to?

    CSS can be inherited, so you could look it to structuring it for that.
  4. #3
  5. |<.+#f@#+.&.|
    Devshed Loyal (3000 - 3499 posts)

    Join Date
    Mar 2002
    Location
    norway
    Posts
    3,009
    Rep Power
    1224
    you assign the same value to more than one class like this.
    seperate the diffrent classes with comma ','

    .data, .heading {
    font-color:red;
    }

IMN logo majestic logo threadwatch logo seochat tools logo