joe
24-06-2011, 15:48
Witam
nie mogę sobie poradzić z elementami graficznymi nałożonymi na siebie
jeden (nazwijmy go B), ten który ma być pod spodem jest ciągle "nad" drugim (nazwijmy go A), ważniejszym dla mnie elementem
w kodzie HTML i CSS "wyżej" jest A
ponadto w CSS dodałem z-index dla obu elementów i nic się nie zmienia
#A{
background: url(../images/headerimagespr.png) top center no-repeat;
height: 177px;
margin: 0 auto;
width: 950px;
z-index: 2;
}
.B{
background: url("../images/line.png") no-repeat scroll center top transparent;
height: 5px;
left: 38px;
position: absolute;
top: 118px;
width: 575px;
z-index: 1;
}Jak "wcisnąć" element B pod element A ??
pzdr/joe
nie mogę sobie poradzić z elementami graficznymi nałożonymi na siebie
jeden (nazwijmy go B), ten który ma być pod spodem jest ciągle "nad" drugim (nazwijmy go A), ważniejszym dla mnie elementem
w kodzie HTML i CSS "wyżej" jest A
ponadto w CSS dodałem z-index dla obu elementów i nic się nie zmienia
#A{
background: url(../images/headerimagespr.png) top center no-repeat;
height: 177px;
margin: 0 auto;
width: 950px;
z-index: 2;
}
.B{
background: url("../images/line.png") no-repeat scroll center top transparent;
height: 5px;
left: 38px;
position: absolute;
top: 118px;
width: 575px;
z-index: 1;
}Jak "wcisnąć" element B pod element A ??
pzdr/joe