nekonesaprotu Posted December 14, 2008 Report Share Posted December 14, 2008 Kāpēc, kad position: absolute nomaina uz relative, atstarpe starp <div> un augšu nedaudz palielinās? body { background: #dddddd; } div.galvenais_konteineris { background: #c5c5c5; position: absolute; width: 1000px; height: 600px; border: dashed black 1px; top: 20px; } un <body> <div class="galvenais_konteineris"> </div> </body> Link to comment Share on other sites More sharing options...
Toms Posted December 14, 2008 Report Share Posted December 14, 2008 Atstarpe starp <div> un augšu nedaudz palielinās tāpēc, ka tu maini position: absolute uz position: relative. Izstudē, ko dara relative un ko absolute. Googlē atslēgvārdi būtu "relative absolute css" Link to comment Share on other sites More sharing options...
Recommended Posts