andrisp Posted July 27, 2005 Report Posted July 27, 2005 #kaste { float:left; } #kaste div { left-margin: 10px; } <div id="kaste"> <div> </div> </div> ieksh IE left-margin raadaas apt. divreiz plataaks nekaa ieksh Operas vai Firefox .. kas vareetu buut par iemeslu ?
Kristabs Posted July 27, 2005 Report Posted July 27, 2005 (edited) man neliela aizdoma, ka jaanodefinee left-margin-style -- UPD: fuj, tas bija ar borderiem, kad katrs paarluuks savu defoulto met, ja nav nodefineets viens Edited July 27, 2005 by Kristabs
bubu Posted July 27, 2005 Report Posted July 27, 2005 Tāpēc, ka tāda left-margin nav, bet gan ir margin-left!
andrisp Posted July 27, 2005 Author Report Posted July 27, 2005 Tāpēc, ka tāda left-margin nav, bet gan ir margin-left! 19929[/snapback] eh te nepareizi ierakstiiju, bet kodaa ir pareizi.
bubu Posted July 27, 2005 Report Posted July 27, 2005 Tad iespējams, ka body margin traucē. uztaisi cssā: * { padding: 0px; margin: 0px; }
andrisp Posted July 27, 2005 Author Report Posted July 27, 2005 Tad iespējams, ka body margin traucē.uztaisi cssā: * { padding: 0px; margin: 0px; } 19931[/snapback] ir jau, iestaadiiju arii aareejam div padding: 0, ja nu kas, bet vienalga
bubu Posted July 27, 2005 Report Posted July 27, 2005 Un nekā cita izņemot tos divus tev nav, tb tā kā piemērā? Moš tas traucē?
andrisp Posted July 27, 2005 Author Report Posted July 27, 2005 ir saturs arii. ieksheejaam divam arii ir float: left un kad iznjeemu aaraa taa uzreiz raadiijaas pareizi, bet man ir vajadziigs tas float: left. Kaapeec vinjs dubultoja margin-left atribuutu ?
bubu Posted July 27, 2005 Report Posted July 27, 2005 tāpēc ka ".klase div" selektors nozīmē jebkuram div elementam, kuram parenta vai grandparenta, vai grandgrand...parenta klase ir "klase". Ja gribi tikai tiešo parentu, tad vajag ".klase > div", bet manurpāt šito IE neatbalsta. Vajadzēs vien iekšējiem diviem arī klases definēt.
andrisp Posted July 27, 2005 Author Report Posted July 27, 2005 nu jaa taa jau laikam bija gan.. nu paldies ka paliidzeeji
Recommended Posts