|
(X)HTML, JavaScript, DHTML, XML, CSS Client scripting tehnologije, Dynamic HTML, Cascading Stylesheets, XML i standardi |
|
Alati teme | Način prikaza |
28. 09. 2012. | #3 |
član
Certified
Datum učlanjenja: 17.10.2006
Poruke: 65
Hvala: 42
18 "Hvala" u 9 poruka
|
Ako sam dobro razumeo sta hocec, onda je bolje da unutrasnje divove apsolutno pozicioniras:
HTML kôd:
<div style="position: relative; width:600px; height: 220px;"> <div style='position: absolute; top: 0; left: 0;width:200px;height:60px;background:blue;'> </div> <div style='position: absolute; top: 0; left: 200px;width:200px;height:70px;background:red;'> </div> <div style='position: absolute; top: 0; left: 400px;width:200px;height:100px;background:green;'> </div> <div style='position: absolute; top: 60px; left: 0;width:200px;height:100px;background:yellow;'> </div> <div style='position: absolute; top: 70px; left: 200px;width:200px;height:80px;background:silver;'> </div> <div style='position: absolute; top: 100px; left: 400px;width:200px;height:60px;background:black;'> </div> <div style='position: absolute; top: 160px; left: 0;width:200px;height:60px;background:blue;'> </div> <div style='position: absolute; top: 150px; left: 200px;width:200px;height:70px;background:red;'> </div> <div style='position: absolute; top: 160px; left: 400px;width:200px;height:60px;background:green;'> </div> </div> |
|
|