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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T14:00:56+00:00 2026-06-04T14:00:56+00:00

Hey all i have some CSS code like so: /* ROW 1 (1-8) */

  • 0

Hey all i have some CSS code like so:

/* ROW 1 (1-8) */
#rsvpBadge0{position: absolute; top: -2px; left: -1px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge1{position: absolute; top: -2px; left: 74px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge2{position: absolute; top: -2px; left: 149px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge3{position: absolute; top: -2px; left: 224px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge4{position: absolute; top: -2px; left: 299px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge5{position: absolute; top: -2px; left: 374px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge6{position: absolute; top: -2px; left: 449px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge7{position: absolute; top: -2px; left: 524px; z-index: 2; width: 50px; height: 50px;}
/* ROW 2 (9-16) */
#rsvpBadge8{position: absolute; top: 68px; left: -1px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge9{position: absolute; top: 68px; left: 74px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge10{position: absolute; top: 68px; left: 149px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge11{position: absolute; top: 68px; left: 224px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge12{position: absolute; top: 68px; left: 299px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge13{position: absolute; top: 68px; left: 374px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge14{position: absolute; top: 68px; left: 449px; z-index: 2; width: 50px; height: 50px;}
#rsvpBadge15{position: absolute; top: 68px; left: 524px; z-index: 2; width: 50px; height: 50px;}

etc etc….

Now i have this the same way going from 1 to 207. It works but the problem i am seeing is it looks fine in FireFox (the top and left coordinates are spot on) but when i view it in IE and Chrome, they are a little off of the top value (needs to be raised a little bit more)

So my question to you all is:

1) How can i shorten the code knowing that each rsvpBadge has a different number and top value?

2) Correct the coordinates for IE and chrome without having to make 3 more 1-209 layers for each browser.

Here is a visual

enter image description here

On the left is what it looks like in Chrome and on the right, FireFox.

  • 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-04T14:00:57+00:00Added an answer on June 4, 2026 at 2:00 pm

    Floating these elements seems appropriate:

    .rsvp-badge{z-index: 2; width: 50px; height: 50px;float:left;}
    

    After that is done, add clear:left; to every element that begins a row.

    Even better: place all elements in a container of a fixed width so that every row fits 8 elements each.

    Update:

    A-ha! So that’s what an rsvp-badge is supposed to be.

    You’d get away with a couple rule using pseudo-elements:

    <div class="user-photo has-rsvpd"></div>
    <div class="user-photo"></div>
    
    .user-photo {
        /*size,background etc. ommited*/
        position:relative;/*to allow position:absolude on pseudo-element*/
    }
    .has-rsvpd:after {
         /*size,background etc. ommited*/
         content:"";position:absolute;top:0;left:0;/*apply to top left corner*/
    }
    

    Or restructuring HTML a bit (which, depending on archtecture, could be appropriate at runtime):

    <div class="user-photo has-rsvpd"><span class="rsvp-badge"></span></div>
    <div class="user-photo"><span class="rsvp-badge"></span></div>
    
    .rsvp-badge {
         display:none;/*hide when user has not rsvpd*/
    }
    .has-rsvpd .rsvp-badge{
         /*same as :after in the sample above, but without a content property*/
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey all, i have converted some C# PayPal API Code over to VB.net. I
Hey all, this is the code i have to check for a day thats
Hey all. Here is the scenario. I have the below code, and I'm needing
Let's say I have the string Hey . I would like to determine all
Hey all... I have a view controller (A) which on some action, alloc init's
Hey all i am trying to find some code that would allow me to
Hey all. I would like to get some insight on a question that I
hey all I have tables with millions of rows in them and some of
Hey all. I have a question on how to implement the following with Django.
Hey all, I have been doing nothing but web development over the last few

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.