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

  • SEARCH
  • Home
  • 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 7402729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T04:48:50+00:00 2026-05-29T04:48:50+00:00

What would be the proper way to style multiple h6 headings differently on one

  • 0

What would be the proper way to style multiple h6 headings differently on one page?
I was thinking of the following:

css:

.content{ width:660px; overflow:hidden; }

.content h6{ margin:25px 20px 0px 35px;
             font-size:32px;
             padding-bottom:5px;
             font-family: 'Arial', sans-serif;
 }

.blue {
     color:#60817a;
     border-bottom:2px solid #99bcb4;
     text-shadow: 1px 1px 1px #99BCB4;
 }

.black {
         color:#000000;
         border-bottom:2px solid #333333;
         text-shadow: 1px 1px 1px #333333;
     }

html:

<div class="content">
<h6 class="blue">Subtitle</h6>

 <div class="content">
 <h6 class="black">Subtitle</h6>
  • 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-29T04:48:51+00:00Added an answer on May 29, 2026 at 4:48 am

    A couple of things:

    1. For a selector to take precedence over another selector, you need to consider its specificity. Your .blue selector will not be as specific as your .content h6 selector, based on the rules outlined in that link (try adding color: red to the content h6 selector; other rules will take precedence like this). Try making the second selector .content .blue instead.

    2. blue is a bad name for a class; for classes and IDs to be semantic, you should choose a name that describes what it is, rather than what it looks like (i.e. looks a bit daft when you change your CSS and decide that it should be red instead).

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

Sidebar

Related Questions

Is there any way purely with CSS (or 'proper' markup) to style the 2nd
What would be the proper way of optimizing the following kind of statements: IEnumerable<T>
Would this be a proper way to dispose of a BackGroundWorker? I'm not sure
How would one follow the proper steps in order to license a package under
I would appreciate some help on creating the proper SQL to retrieve only one
Would following the table below be the best way of determining the access type
What would be the proper way to unit test an abstract class which takes
What would be the best way to ask Propel to check whether existing object
Any idea what the proper containing markup would be to indicate a transcript for
Would like to be able to set colors of headings and such, different font

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.