14 lut 2013

Style do scieżki okruszków

Przykładowe style css do ścieżki okruszków strony

#bar ul li {float:left; padding-left:20px; background: url(/img/strz_r.png) 6px 7px no-repeat}
#bar ul li a {color: #678AC7;}
#bar ul li.first {background-image: none;}
26 lis 2010

Ustawienie trzech tagów div w lini

.a {
 width: 200px;
 border: 1px solid;
 height: 40px;
 float: left;
}

.b,.c {
 border: 1px solid;
 width: 40px;
 height: 40px;
 float: left;
}
<div class="a">test 123456</div>
<div class="b">123</div>
<div class="c">123</div>
.a {
 width: 200px;
 border: 1px solid;
 height: 40px;
 float: left;
}

.b,.c {
 border: 1px solid;
 width: 40px;
 height: 40px;
 float: left;
}
<span class="a">test 12345</span>
<span class="b">123</span>
<span class="c">123</span>
22 lis 2010

Zmiana z-index dla diva

Ziana z-indexu n większy powoduje wyciągniecie warstwy wyżej nad wszystkie inne.
z-index:1111;  z-index:11111

document.getElementById('nazwa').style.zIndex=11111;