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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T04:29:13+00:00 2026-06-14T04:29:13+00:00

Looking at this image might make things clear.. FIDDLE The main container is a

  • 0

Looking at this image might make things clear..

FIDDLE

enter image description here

enter image description here

The main container is a div in which there are 5 more div’s each of them holding some data.

If the count for that data is 0 then , just display the text .
If the count is greater than 0 , then shown count and image nested inside a span and the image and number are clickable…

The second image is to show how the text inside the div is being rendered..

Because of the image in the 3rd and the 5th div’s the gap between the div’s is not being consistent . Even after setting the image to position:relative and position:absolute , setting the left and top property seems to have no affect ..

Can someone help me out in this context ..

HTML

<div id="prop">
   <div id="lvl1" class="alrt">
      Missing reads within 1 week : <span data-tr="1">0</span>
   </div>
   <div id="lvl2" class="alrt">
      Latest reads 1 Week or older : <span data-tr="2">0</span>
   </div>
   <div id="lvl3" class="alrt">
      Occupied Zero Consumption : <span data-tr="3"><a>39 <img src="../icon1.png" title="" /></a></span>
   </div>
   <div id="lvl4" class="alrt">
      Negative Consumption : <span data-tr="4">0</span>
   </div>
   <div id="lvl5" class="alrt">
      Vacant Consumption: <span data-tr="5"><a>5 <img src="../icon2.png" title="" /></a></span>
   </div>
   <div class="msg">
      *all alerts are based on yesterdays reads
   </div>
</div>

CSS

#prop
{
    height:55%;
    padding-top:10px;
    border:solid 2px #B2CD48;
    border-radius:10px;
    margin:10px 0 10px 15px;
}

#prop > .alrt 
{
    width:80%;
    float:right;
    height:12%;
    font-weight:700;
    font-size:1em;
    color:#42456B;
    padding:3px;
}

.alrt a 
{
    cursor:pointer;
    position:relative;
}

.alrt > span > a > img 
{
    width:20px;
    height:20px;
    position:relative;
    top:3px;
}
  • 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-14T04:29:14+00:00Added an answer on June 14, 2026 at 4:29 am

    Try using this for .alrt > span > a > img

    .alrt > span > a > img
    {
        width: 20px;
        height: 20px;
        position: absolute;
        top: -3px;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking to create something like in this image. Each block would have an
I tried looking this up on here but couldnt find a proper answer. I
Looking at this article: http://www.galloway.me.uk/tutorials/singleton-classes/ I have implemented a singleton, my question is the
looking at this example of the jquery ui slider http://jqueryui.com/demos/slider/#steps i want to be
Looking at this jQuery example, how can I modify the code so that it
Looking in this StackOverflow question it uses the following to send emails: System.Net.Mail.SmtpClient Is
Im looking at this implementation of DCT using cuda: http://www.cse.nd.edu/courses/cse60881/www/source_code/dct8x8/dct8x8_kernel1.cu The part in question
I was looking at this code of a sieve of eratosthenes but i still
I'm looking at this code snippet: var addSnippet = function( req, res ) {
I have this small class looking like this: private static int field1 = -

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.