ray Posted February 12, 2008 Report Share Posted February 12, 2008 ielieku bildi iekšā div un man zem tās bildes visu laiku ir kādu 1px vai 2px liela sprauga, kas paplašina div platumu (height) par to lielumu, kā spraugu noņemt? Link to comment Share on other sites More sharing options...
Vebers Posted February 12, 2008 Report Share Posted February 12, 2008 Divam uzliec paddingu uz 0px un bildei marginu uz 0px; Link to comment Share on other sites More sharing options...
ray Posted February 12, 2008 Author Report Share Posted February 12, 2008 uzliku, bet tik un tā, tā s*da atstarpe tur ir :/ Link to comment Share on other sites More sharing options...
Vebers Posted February 12, 2008 Report Share Posted February 12, 2008 Paskaties ar firebug, pie stila (style / css), vai no kaut kurienes ne-overraidojas no kāda cita elementa, borderis vai kaut kas tamlīdzīgs. Link to comment Share on other sites More sharing options...
pilots Posted February 12, 2008 Report Share Posted February 12, 2008 pamēģini: img style="display:block;" Link to comment Share on other sites More sharing options...
ray Posted February 12, 2008 Author Report Share Posted February 12, 2008 Ar Pilota ieteikumu problēma atrisināta. Paldies ;) Link to comment Share on other sites More sharing options...
Vebers Posted February 12, 2008 Report Share Posted February 12, 2008 Ah nu jā img ir inline elements, tāpēc uz viņu nedarbojās padding`i un margin`i līdz ko neuzliek viņas display: block; Link to comment Share on other sites More sharing options...
pilots Posted February 12, 2008 Report Share Posted February 12, 2008 skaidrs, ka darbojās gan padding, gan margin, bez visa display:block. tā kā runa gāja par to rezervēto ~pikseli apakšā, tad tur nedz padding, nedz margin nav vainīgi. Link to comment Share on other sites More sharing options...
andrisp Posted February 12, 2008 Report Share Posted February 12, 2008 pilots, inline elementiem padding un margin strādā tikai horizontāli, tb - tikai uz kreisu un labo malu, bet ne uz augšu un apakšu. Link to comment Share on other sites More sharing options...
Vebers Posted February 12, 2008 Report Share Posted February 12, 2008 pilots, darbojas, bet ne "in their usual way". http://maxdesign.com.au/presentation/inline/ Link to comment Share on other sites More sharing options...
pilots Posted February 12, 2008 Report Share Posted February 12, 2008 Galvenais, ka tēmas problēma atrisināta. Šo jautājumu ik pa laikam kāds uzdod. Link to comment Share on other sites More sharing options...
mefisto Posted February 12, 2008 Report Share Posted February 12, 2008 Vispār jauto risina ar vertical-align: baseline, jo display parametra maiņa rada pārāk daudz problēmu. Link to comment Share on other sites More sharing options...
ray Posted February 12, 2008 Author Report Share Posted February 12, 2008 display parametra maiņa rada pārāk daudz problēmu. piemēram kādas? Link to comment Share on other sites More sharing options...
pilots Posted February 12, 2008 Report Share Posted February 12, 2008 Nekādas problēmas neesmu novērojis lietojot šo variantu. Link to comment Share on other sites More sharing options...
Kristabs Posted February 12, 2008 Report Share Posted February 12, 2008 Var radīt efektus/defektus , piemēram, stiepšanās horizontāli pa 100% Link to comment Share on other sites More sharing options...
Recommended Posts