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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:24:31+00:00 2026-05-30T12:24:31+00:00

I have created a simple, light weight, GUI similar to Microsoft Metro UI .

  • 0

I have created a simple, light weight, GUI similar to Microsoft Metro UI. It is comprised of a set of elements which are floating to make it flexibly re-sizable according to the size of the screen:
enter image description here

Here is the code:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Index2</title>
<style type="text/css">
.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}
html{
    font-family:Verdana, Geneva, sans-serif;
    font-size:14px;
}
div.tiles{
    background-color:black;
    padding:50px;
}
div.tiles div{
    border-radius:2px;
    padding:10px;
    margin:5px;
    color:white;
    background-color:#666;
    display:marker;
    cursor:pointer;
    float:left;
    width:25px;
    height:25px;
}
div.tiles div:hover{
    transition:background-color 1s;
    -moz-transition:background-color 1s;
    -webkit-transition:background-color 1s;
    background-color:#060;
    -moz-transform:rotate(6deg);
}
div.tiles div.icon{
    position:relative;
    bottom:0px;
    left:0px;
    z-index:10;
    background-color:red;
}
div.tiles div.w1{width:25px;}
div.tiles div.w2{width:80px;}
div.tiles div.w3{width:160px;}
div.tiles div.w4{width:190px;}

div.tiles div.h1{height:25px;}
div.tiles div.h2{height:80px;}
div.tiles div.h3{height:160px;}
div.tiles div.h4{height:190px;}
</style>
</style>
</head>
<body>
<div class="tiles clearfix">
    <div class="w4 h2">
    mattberg@live.com <div class="icon">icon</div>
    </div>  
    <div class="w4 h2">
    RSS
    </div>  
    <div class="w4 h2">
    13
    </div>
    <div class="w2 h2">
    IE
    </div>  
    <div class="w2 h2">
    Photo
    </div>  
    <div class="w4 h2">
    Now Playing
    </div>  
    <div class="w4 h2">
    Photo <div class="icon">icon</div>
    </div>  
    <div class="w2 h2">
    Shop
    </div>
    <div class="w2 h2">
    SMS
    </div>  
    <div class="w4 h2">
    Weather <div class="icon">icon</div>
    </div>  
    <div class="w4 h2">
    Investment
    </div>  
    <div class="w1 h1">
    Lilly
    </div>  
    <div class="w1 h1">
    Lilly
    </div>  
    <div class="w1 h1">
    Lilly
    </div>  
    <div class="w1 h1">
    Lilly
    </div>  
    <div class="w1 h1">
    Lilly
    </div>  
    <div class="w1 h1">
    Lilly
    </div>  
    <div class="w1 h1">
    Lilly
    </div>  
</div>
</body>
</html>

I have a problem positioning the icon elements in the divs. This is what I have:

enter image description here

and this is what I want:

enter image description here

In other words I want to be able to position the elements in the tiled div elements absolutely. I tried various CSS positioning techniques (relative, fixed, absolute) but couldn’t solve it. I suspect it’s because the tiles are floating elements?

How can I be able to design the contents of each tile regardless of its position in the web page?

  • 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-30T12:24:32+00:00Added an answer on May 30, 2026 at 12:24 pm

    Make the tile divs relatively positioned and icons absolutely positioned.

    .tiles > div {
        float: left;
        position: relative;
    }
    
    .tiles > div .icon {
        position: absolute;
        bottom: 0;
        left: 0
    }
    

    With relative positioning the tile div becomes a containing block for its absolute positioned children. Relative elements are positioned just like normal (static) elements when top and left are zero or undefined.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a simple wcf service which used the WCF Service Library template.
I have created a simple grid of divs by left floating them and an
I have created a simple Asp.Net custom control which automatically combines all the correct
i have created a simple public ref class in the vc++ project, which is
I have created a very simple wpf app with mvvm light. I have rows
Could someone help me on this, I have created simple web services using axis2
How to manually create Friendly URLs? (PHP) So I have created simple php file
I have created some simple app in Java, and 'deployed' it using Java Web
I have created a simple test form with FormBorderStyle = FixedToolWindow by default and
I have created a simple JQuery script with hovering effect on some links. The

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.