Kavacky Posted March 17, 2005 Report Posted March 17, 2005 KavackyOk, piedāvā, lūdzu, man citu variantu, kā uztaisīt kolonnas. <style type="text/css"> #container { border: 1px solid blue; margin-left: auto; margin-right: auto; width: 400px; } #col1 { width: 100px; background-color: #AAA; } #col2 { width: 200px; background-color: #CCC; } #col3 { width: 100px; background-color: #DDD; } </style> <div id="container"> <div id="col1">bla bla bla</div> <div id="col2">bla bla bla bla bla bla bla bla bla bla bla bla </div> <div id="col3">bla bla bla</div> </div> Un viss vienā kolonnā. Vai arī tev vajag vairākas?
Qued Posted March 17, 2005 Author Report Posted March 17, 2005 Un viss vienā kolonnā. Vai arī tev vajag vairākas? Nuja. 3 gab. Katru colN div'u savā kolonnā.
Kavacky Posted March 17, 2005 Report Posted March 17, 2005 Nuja. 3 gab. Katru colN div'u savā kolonnā. <style type="text/css"> #container { border: 1px solid blue; margin-left: auto; margin-right: auto; width: 400px; } #col1 { display: inline; width: 100px; background-color: #AAA; } #col2 { display: inline; width: 200px; background-color: #CCC; } #col3 { display: inline; width: 100px; background-color: #DDD; } </style> <div id="container"> <div id="col1">bla bla bla</div> <div id="col2">bla bla bla bla bla bla bla bla bla bla bla bla </div> <div id="col3">bla bla bla</div> </div>
Qued Posted March 17, 2005 Author Report Posted March 17, 2005 Kavacky Tu, kā skatos, esi jokupēteris. :blink:
Kavacky Posted March 17, 2005 Report Posted March 17, 2005 KavackyTu, kā skatos, esi jokupēteris. :blink: Un kur tur bija joks? :blink: PS: Vispār joki jau man patīk.
bubu Posted March 17, 2005 Report Posted March 17, 2005 Kāda jēga izmantot div, ja norāda display: inline! Tad jau uzreiz span'us un miers :)
Recommended Posts