shavenlunatic
MIS
Hello CSS Peoples
We are creating an interactive map that allows the user to travel using a grid reference system
The map consists of a number of layers:
1. The main wrapper that holds the map
2. The map itself
3. The grid overlay made from a number of css squares
4. A number of icons placed inside the aforementioned grid
This works great in FireFox, Safari and Opera, but as always it is not so easy when it comes to IE - the map image simply does not display.
I am aware of the need to set a position when using z-index in IE, but nothing seems to fix this issue
Can anyone help?
________
clueless
We are creating an interactive map that allows the user to travel using a grid reference system
The map consists of a number of layers:
1. The main wrapper that holds the map
2. The map itself
3. The grid overlay made from a number of css squares
4. A number of icons placed inside the aforementioned grid
This works great in FireFox, Safari and Opera, but as always it is not so easy when it comes to IE - the map image simply does not display.
I am aware of the need to set a position when using z-index in IE, but nothing seems to fix this issue
Can anyone help?
Code:
/*The main wrapper that contains everything*/
#map_wrapper
{
height: auto;
width: 890px;
display: inline;
float:left;
margin-left:40px;
border: 1px solid #000;
-moz-border-radius: 10px;
-khtml-border-radius: 10px;
-webkit-border-radius: 10px;
-border-radius: 10px;
padding-top: 10px;
padding-left: 15px;
padding-right: 15px;
background-image: url(../Images/Generic/BlackOverlay.png);
background-repeat: repeat;
}
/*The Map Image*/
#map_main
{
width: 400px;
height: 400px;
border: 1px solid #000;
overflow:hidden;
z-index: 1;
float:left;
margin-top: 10px;
margin-bottom: 15px;
}
/*The Map Grid Squares */
#map_grid
{
width: 79px;
height: 79px;
border-right: 1px dashed #333;
border-top: 1px dashed #333;
float:left;
z-index: 10;
position: relative;
}
#map_fog
{
width: 79px;
height: 79px;
border-right: 1px dashed #333;
border-top: 1px dashed #333;
float:left;
z-index: 10;
position: relative;
background-image: url(/Images/Generic/BlackOverlay.png);
background-repeat: repeat;
}
/* The Map Icons */
#map_icon
{
width: 50px;
height: 50px;
margin-top: 15px;
margin-left: 15px;
z-index: 25;
position: absolute;
}
#map_star
{
width: 50px;
height: 50px;
margin-top: 15px;
margin-left: 15px;
z-index: 15;
position: absolute;
}
#map_travelnorth
{
width: 20px;
height: 20px;
margin-top: 59px;
margin-left: 29px;
text-align: center;
z-index: 15;
float: left;
}
#map_travelsouth
{
width: 20px;
height: 20px;
margin-left: 29px;
text-align: center;
z-index: 15;
float: left;
}
#map_traveleast
{
width: 20px;
height: 20px;
margin-top: 29px;
text-align: center;
z-index: 15;
float: left;
}
#map_travelwest
{
width: 20px;
height: 20px;
margin-top: 29px;
margin-left: 59px;
text-align: center;
z-index: 15;
float: left;
}
________
clueless