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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T00:12:03+00:00 2026-05-26T00:12:03+00:00

I have the 2 divs that I want styled the same. One is called

  • 0

I have the 2 divs that I want styled the same. One is called #popover, the other is called #recordViewPopover. Here is my CSS for popover. How can I make #recordViewPopover use the same CSS as #popover?

#popover {
  -webkit-border-radius: 4px;
  -webkit-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  -webkit-transition: opacity 0.25s linear;
  -moz-border-radius: 4px;
  -moz-box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  -moz-transition: opacity 0.25s linear;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  transition: opacity 0.25s linear; 
  border: 3px solid black;
  border-radius: 4px;
  background-color: white;
  color: black;
  cursor: auto;
  display: none;
  font-weight: normal;
  line-height: 1;
  position: absolute;
  right: 22px;
  z-index: 5000000;
}

#popover > .popover_triangle
{
  border-top: 16px solid rgba(0,0,0,0);
  border-left: 16px solid rgba(0,0,0,0);
  border-right: 16px solid rgba(0,0,0,0);
  border-bottom: 16px solid black; 
  font-size: 0px;
  line-height: 0%;
  position: absolute;
  top: -34px;
  left:150px;
  width: 0px;
}

#popover > .header
{
  background: #222;
  background: -moz-linear-gradient(top, #333 0%, #111 100%);
  background-image: -webkit-gradient(
    linear,
    left top,
    left bottom,
    from(rgba(255, 255, 255, 0.55)),
    color-stop(0.2, rgba(255, 255, 255, 0.35)),
    color-stop(0.5, rgba(255, 255, 255, 0.1)),
    color-stop(0.5, transparent),
    to(transparent));
  color: white;
  font-weight: bold;
  height: 27px;
  line-height: 25px;
  margin: 0;
  padding: 3px;
  text-shadow: rgba(0, 0, 0, 1) 0 -1px 0;
  text-align: center; 
}

#popover > .content
{
  font-size: 12px;
  max-height: 400px;
  overflow-x: hidden;
  overflow-y: auto;
  width: 190px;
}

#popover > .content ul
{
  list-style: none;
  margin: 0;  
  padding: 0;
}

#popover > .content ul li
{
  border-bottom: #ccc 1px solid;
  line-height: 25px;
}

#popover > .content ul li.item:hover
{
  border-bottom: #1443be 1px solid;
}

#popover > .content ul li h6
{
  background: #f3f3f3;
  display: block;
  color: #000;
  font-size: 13px;
  padding: 0 10px;
  text-shadow: rgba(255, 255, 255, 1) 0 -1px 0;
}

#popover > .content ul li a
{
  display: block;
  padding: 0 14px;
}

#popover > .content ul li a:link,
#popover > .content ul li a:visited
{
  text-decoration:none;color:#333;
}

#popover > .content ul li a:focus,
#popover > .content ul li a:hover
{
  background: #5396e3 url('../images/arrow-small.png') 97% center no-repeat;
  color: #fff;
  text-decoration: none;
  text-shadow: rgba(0, 0, 0, .55) 0 -1px 0;
}

Here are my divs

<div id='popover'> 
  <div class='popover_triangle'></div> 
  <div class='header'>OPTIONS</div> 
  <div class='content'> 
    <ul>
      <li><h6>OBJECT VIEW</h6></li> 
      <li class='item'><a onclick=\"$(document).trigger('objectViewFiltersEnabled', [ !filtersEnabled ]);\">Filters</a></li>
      <li class='item'><a href=\"#\" >Configuration</a></li>
      <li><h6>OBJECT</h6></li>
      <li class='item'><a href=\"#\" >Configuration</a></li>
      <li class='item'><a href=\"#\" >Documentation</a></li>
    </ul> 
  </div> 
</div>

<div id='recordViewPopover'> 
  <div class='popover_triangle'></div> 
  <div class='header'>OPTIONS</div> 
  <div class='content'> 
    <ul>
      <li><h6>Information</h6></li> 
      <li class='item'><a href='#' >Change Logs</a></li> 
      <li><h6>Actions</h6></li>
      <li class='item'><a href='#' >Assign</a></li> 
      <li class='item'><a href='#' >Share</a></li>
      <li class='item'><a href='#' >Convert</a></li> 
      <li class='item'><a href='#' >Copy</a></li> 
      <li class='item'><a href='#' >Clone</a></li> 
      <li class='item'><a href='#' >Merge</a></li>
      <li class='item'><a href='#' >Refresh</a></li>
      <li class='item'><a href='#' >Delete</a></li>    
    </ul> 
  </div> 
</div>
  • 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-26T00:12:03+00:00Added an answer on May 26, 2026 at 12:12 am

    You would assign them both the same class. To do this you would have:

    <div id='popover' class='someName'>
    
    <div id='recordViewPopover' class='someName'>
    

    and your CSS would be declared:

    .someName {
    //Add styles here
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a set of divs that I want to make collapsible/expandable using jQuery's
I keep finding that if I have nested divs inside each other, and one
I have two divs, one inside the other, and i want block the inside
I have 2 divs on my page that I want to appear with one
I have two divs one inside of the other, now i want to put
I have divs that I want to display at specific times throughout the day.
I have several divs that share a common class. If one of these divs
I have a div that is wrapped in a few other divs that are
I have some divs that I want to display under some specific conditions in
I have two divs floated left so that they appear next to each other.

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.