chrisp Posted June 15, 2007 Report Share Posted June 15, 2007 Lieta sekojosha. Virs bildes izvietots texts kuram jaabuut vertikaali centreetam. Ar padding meginaju, bet IE un FF izskataas atshkiriigi respektiivi IE izskataas ka vajag, bet FF papildus uzstiepj manu bildiiti. Ir kaada komanda ar ko to varetu dabuut gatavu? Link to comment Share on other sites More sharing options...
mefisto Posted June 16, 2007 Report Share Posted June 16, 2007 Nē , nav tādas komandas. CSS vispār nav komandu .. Lai nu kā, varbūt paskaidro sīkāk, vēlams ar screenu, jo pēc šī apraksta vadoties atbilde ir : nevar. Link to comment Share on other sites More sharing options...
Grey_Wolf Posted June 16, 2007 Report Share Posted June 16, 2007 varbuut nesapratu , bet ja gribi lai virs (nevis VIrsuu) bildes buutu text tad ... <style> .a1 { text-align:center; } </style> <div class="a1"> textc<br> <img src="a.jpg"> </div> ja gribi VIrsuu tad position: apsalut + divs divaa + Z-index..... Link to comment Share on other sites More sharing options...
chrisp Posted June 16, 2007 Author Report Share Posted June 16, 2007 (edited) Grafisks atteels ar to kaa ir: Vajag lai vārds kanalizācija būtu vertikāli centrēts neizmantojot padding, jo ar padding firefoxaa izskataas shaadi: Bet IE izskataas shaadi: Vajag lai izskatiitos liidziigi gan FF gan IE. Taapeec padding neder un vajag citu veidu kaa vertikaali centreet textu. Edited June 16, 2007 by chrisp Link to comment Share on other sites More sharing options...
drinkits Posted June 16, 2007 Report Share Posted June 16, 2007 textam uzliec line-height: 12px; nu liec tik ciks tev liela ta bilde, gan saprati =] Link to comment Share on other sites More sharing options...
andrisp Posted June 16, 2007 Report Share Posted June 16, 2007 Vai arī izmanto pareizu doctypu, kas tev ieslēgs renderēšanas dzini standartu režīmā. http://hsivonen.iki.fi/doctype/ Vari arī to iekšējo tekstu iewrapot vēl vienā elementā (span) un tam uzlikt margin. Link to comment Share on other sites More sharing options...
localhero Posted June 16, 2007 Report Share Posted June 16, 2007 Tas visticamak ir kads defaultais FF margins/paddings. Uzseto abus uz 0 un paskaties. Galu gala var jau ari IE iedot citu stilu. Link to comment Share on other sites More sharing options...
andrisp Posted June 16, 2007 Report Share Posted June 16, 2007 localhero, sheit nav probleema kaut kaadaa defaultajaa marginaa vai padinaa, bet gan parastajaa box model atshkjiriibaa. Link to comment Share on other sites More sharing options...
mefisto Posted June 17, 2007 Report Share Posted June 17, 2007 Nez. Kas tur ir ko pērties ? Tķip tā bilde ir 180 x 30 pixels. Nu . Kur ir problēma ? Menu .. liste .. atkal nav problēmu. *{ padding: 0; margin: 0; } ul{ list-style-type: none; } li{ display: block; height: 30px; width: 180px; background: transparent url(tur/kur/blide/menu.png) no-repeat; } li a{ display: block line-height: 30px; padding-left: 30px; color: #000; text-decoration: none; } Liekas viss .. neparbaudīju. Link to comment Share on other sites More sharing options...
nemec Posted June 17, 2007 Report Share Posted June 17, 2007 http://www.jakpsatweb.cz/css/css-vertical-...r-solution.html tas, ja tekstu vajag pa vidu vienaa un vairaakaas rindaas Link to comment Share on other sites More sharing options...
mefisto Posted June 17, 2007 Report Share Posted June 17, 2007 Ne jau par tāda veida 'textu vidū' ir runa. Link to comment Share on other sites More sharing options...
Recommended Posts