Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Declaring Color Values in CSS

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #22806
    mickbw
    Member

    Is there a way to Declare a color value at the beginning of my CSS file in a variable and then use that variable name when a color is called for in the code.

    #48043
    koewnet
    Member

    Not with pure CSS. You can, however, create your own color-classes since elements can have tons of classes at once (but only one ID, since it’s unique).

    #48053
    mickbw
    Member

    The Search and replace method is what I have used in the past but I figured there must be a more professional way of doing it.

    Chris, I swear I will remember this time to define the colors in a comments block like you suggested.

    Have a nice weekend.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘CSS’ is closed to new topics and replies.