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 8880865
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T20:14:18+00:00 2026-06-14T20:14:18+00:00

Is it possible to make two divs with the same css, something like: .Navig1,

  • 0

Is it possible to make two divs with the same css, something like:

.Navig1, .Navig11 a {
  display: block;
  height: 15px;
  width: 70px;
  background-color: {color: Navig Bg 1};
  text-align: center;
  font-size: 8px;
  line-height: 15px;
  color: #FFF;
}

Because I don’t want my style code to be too long, and I need these two to look the same, but be different when hovered, and I thought this would do, but this code doesn’t work.
Where am I making the mistake?

  • 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-06-14T20:14:19+00:00Added an answer on June 14, 2026 at 8:14 pm

    Yes it is possible:

    .Navig1 a, .Navig11 a {
      display:block;
      height:15px;
      width:70px;
      background-color:#000;
      text-align:center;
      font-size:8px;
      line-height:15px;
      color:#FFF;
    }
    
    .Navig1 a:hover {
      /*css property*/
    }
    
    .Navig11 a:hover {
      /*other css property*/
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given two lists of different types, is it possible to make those types convertible
Possible Duplicate: MVC3 custom validation: compare two dates I am trying to make a
Is it possible make some handler that will do something when user shutdown computer
Is it possible to make a div 50px less than 100% in pure CSS?
Is it possible to make two or more msgids matching one msgstr ? For
I remember reading somewhere that you could make two android apps share the same
Possible Duplicate: click link below a higher z-index div I have two divs, one
I have two divs that I would like to be side-by side if the
I have a two-column layout, composed of fixed-width floated divs. Inside the first column
Is it possible to make two matches of text - /123/123/123?edit I need to

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.