#1
  1. Code Chimp
    Devshed Newbie (0 - 499 posts)

    Join Date
    May 2004
    Location
    Madrid
    Posts
    45
    Rep Power
    11

    CSS and Inheritance


    I am wondering if it is possible to use previously defined CSS variables in later css definitions? I currently have a font type css variable called "texto1" that I would like to use in conjuction with an "input" variable that defines positioning and the size of my input types. Is this possible??

    Code:
    --both of the following need the previously specified font called "texto1"--
    input.addRemoveButton {width:75px;}
    input.inputBox {width:150px;}
    Thanks for any help
  2. #2
  3. Thanks Johnny Hart (BC) R.I.P.

    Join Date
    May 2003
    Location
    Dallas
    Posts
    5,268
    Rep Power
    1956
    Code:
    <input class="addRemoveButton texto1" …>
    
    <input class="inputBox texto1"…>
    cheers,

    gary
    There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

    My html and css workshop, demos and tutorials.
    Ask a better question, get a better answer.

IMN logo majestic logo threadwatch logo seochat tools logo