Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 665003
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T23:39:44+00:00 2026-05-13T23:39:44+00:00

I was looking to join 2 styles together to make a super style for

  • 0

I was looking to join 2 styles together to make a super style for easy use and customisation of my page.

Is it possible to define something like this? (if so how)

.bold { font-weight: bold;}
.color1 {color: white;}

.boldColor {.bold; .color1;}

where .boldColor is effectively

.boldColor {font-weight:bold; color:white;}

I want this so that I can have styles thoughout the page and be able to easily change the colors in many places in 1 place. I’m currently using <p class="bold color"> but some of my class defs are becoming long so I’d like to be able to use <p class="boldColor">

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T23:39:45+00:00Added an answer on May 13, 2026 at 11:39 pm

    You can’t do exactly what you are asking for but you can get similar effects by using a comma to separate multiple css selectors that share the same properties.

    .bold, .boldColor {
        font-weight: bold;
    }
    
    .color1, .boldColor {
        color: white;
    }
    

    This way class="boldColor" will have the same effect as class="color1 bold".

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for something like this: SELECT german_subsidiaries.*, customers.* FROM german_subsidiaries INNER JOIN customers
I am looking for a way to join together 2D line segments. A line
I need something exactly like a SQL JOIN which cannot be done with appengine
I am looking for something like this but can't figure out the best way
I'm looking for something to augment the function of the apache commons join() function,
I've been looking into JOIN, subqueries and other ways of doing this, but I
What I'm looking for is a basic equivalent of JavaScript's Array::join() whereby you pass
Looking to do a very small, quick 'n dirty side project. I like the
I'm looking for well organized information sources about how the upcoming jsr166y (fork-join, fences)
join_strings(string $glue, string $var, string $var2 [, string $...]); I am looking for something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.