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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T07:25:32+00:00 2026-05-31T07:25:32+00:00

Hi again, this time the problem is with css, I’ have a custom object

  • 0

Diagram

Hi again, this time the problem is with css, I’ have a custom object (black rectangle named container) that contains items (red rectangle), each item must contain a litle rectangle (blue) named flag. Until here everithing ok.

here is the css properties:

.container 
{
  overflow:visible;
  position:absolute;
  border:0px solid;
  border-color:Black;
  width:500px;
  height:500px;
}
.Item
{
 overflow:visible;
 border:0 invisible;
 position:absolute;
 z-index:100;
 margin-top:1px;
}

.Flag 
{
 position:absolute;
 width:20%;
 height:20%;
 margin-left:80%;
 margin-top:80%;
 z-index:98;
 opacity: 0.5; 
}

And Here is my Html

<div class="Container" id="CondicionesMostrar" style="left: 0.31em; top: 0.31em; width: 84.75em; height: 44em;">
    <div class="Item" id="I_Cond_1" style="left: 0.06em; top: 0.06em; width: 216px; height: 120px; border-width:thick; background-color:Black;" onclick="alert(Hello');">
        <div class="Flag"></div>
    </div>
</div>

The problem is when the size width is greater than height the flag appear out of Item like the image A and if the height is greater than width it appear as the image B. The Item might have different sizes, the tests was made in Firefox 10.0.2, chromre 17.0.963.79m and IE 9, all of them return the same result.

Tests

What is the current way to do this? There is anything bad on my css?

I’m using absolute positions because i need to populate Container with many Items.
There is an alternative to perform this task?

Very tks for your help.

  • 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-31T07:25:33+00:00Added an answer on May 31, 2026 at 7:25 am

    on .Flag, remove:

    margin-left:80%;
    margin-top:80%;
    

    and change it to:

    bottom: 0;
    right: 0;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This time I have an error which I have been trying again to figure
I'm again working on Project Euler, this time problem #4. The point of this
I have looked into this time and again and have read solutions but they
I again need help by you, this time I struggle with covariance, contravariance, delegates
I'm facing this problem again and again, but can't find any solution (except mine,
Again I have a question regarding this plugin: http://t.wits.sg/2008/06/20/jquery-progress-bar-11/ What I want to achieve
I see this problem on and off again in my PHP coding, and I've
I followed this guide here perfectly and have gone through it again but when
I've looked at this over and over again and I can't see the problem.
I have a very simple page that is displaying canned data. I experienced this

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.