Forums

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

Home Forums CSS Make two classes use the same code

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

    Sorry about the title, but this is kind of hard to explain. I’ll give it a go and if it doesn’t make sense, please leave a comment.

    I’ve got **class=’gfg-title’** that should look exactly like **class=’widget-title’**. I cannot (or don’t know how to) change their names. Is there a way to say **.gfg-subtitle = .widget-title** or something like that???

    #129274
    Alen
    Participant

    You could define them both, like so:

    .gfg-title,
    .widget-title {
    /* style here */
    }

    #129287
    madsrh
    Member

    So simple. Thanks I’ll give it a try

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