testes: ‘hasLayout’ e o comportamento encolher para conter (IE6/Win e IE7Win)

1. Listas verticais: floating <ul>, sem-layout <a>

2. Listas verticais: floating <ul>, layout <a>

3. Listas horizontais: floating <li>, layout <a>

Estilos

.testgrid ul {margin:0; padding:0; list-style:none;}
.testgrid ul a {margin:1px; display:block;}

ul.vertical {float:left; background: #cbba65; padding: 0.5em; list-style: none; } 
.nonlayout a { border: 2px solid #080; background:#dfd;} /* test 1 */
.layout a { zoom:1; border:2px solid #008; background:#ccc} /* test 2 */

ul.horizontal {padding:.5em; background; #65cbcb;} /* should not be visible */
.horizontal li {float:left; margin:2px;}
.horizontal a { height:1.5em; border:2px solid #d00; background:#ddd}

Notas

Última modificação : 2006-04-14 12:31:48 GMT.