Wuu Posted September 30, 2008 Report Share Posted September 30, 2008 Ka pareizi izvietot bildes piemeram man ir divs 45x45 un es gribu ielikt tani diva 6 atelus viens otram pa virsu ta lai diva lielums nemainas! Ar 2 bildem var vienu ielikt par img background ar css palidzibu ,bet man vajag vairak! Kadi ieteikumi? Ludzu palidzet ar gatavu koda piemeru, esmu slimnica pa googlet nevaru normali :( Link to comment Share on other sites More sharing options...
martins256 Posted September 30, 2008 Report Share Posted September 30, 2008 http://www.w3schools.com/Css/pr_class_position.asp position:absolute Link to comment Share on other sites More sharing options...
Wuu Posted September 30, 2008 Author Report Share Posted September 30, 2008 Sito jau biju meginajis ,bet nez kapec bilde aiziet pa kreisi apmeram pa 45px tiesi tik cik divs plats un vai tad absolute nevajag dod tiesas ekrana kordinates? Tapec jau topiks bija pie xtml ,jo mekleju html risinaju css te kaut ka gluko. Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2008 Report Share Posted September 30, 2008 absolute koordinātes mēra relatīvi no tā parent elementa. Ja tev vajag absolūti ekrāna koordinātēs, tad tev jālieto position: fixed. Tev izskatās, ka viss gļuko. php, mysql, tagad arī html. Link to comment Share on other sites More sharing options...
andrisp Posted September 30, 2008 Report Share Posted September 30, 2008 absolute koordinātes mēra relatīvi no tā parent elementa.\... ja parent elements ir pozicionēts. Link to comment Share on other sites More sharing options...
bubu Posted September 30, 2008 Report Share Posted September 30, 2008 Jā, slikti izteicos. Precīzāk būtu bijis teikt mēra no tā bloka elementa tieši zem kura tas atrodās. Link to comment Share on other sites More sharing options...
Wuu Posted October 1, 2008 Author Report Share Posted October 1, 2008 (edited) kapec tad tas zimejums nobidas pa kreisi? zimejums tiek izsaukts tiesi ieks diva hmm? par to glukusona vienk. stradaju ar jaunam lietam bez pieredze ,un nekaunos paprasit kadu padomu :) Edited October 1, 2008 by Wuu Link to comment Share on other sites More sharing options...
andrisp Posted October 1, 2008 Report Share Posted October 1, 2008 Norādi tam divam position: relative (tādā veidā tu viņu pozicionēsi). Un tad visiem child elementiem norādi position: absolute; left: 0; top: 0; PS. Wuu, tu jau nekaunies nod**t lietas, ko pats nemaz nesaproti. Un tas nav smuki. Link to comment Share on other sites More sharing options...
Wuu Posted October 1, 2008 Author Report Share Posted October 1, 2008 ne nepalidz skaidri redzams ka bilde nobidas pa kreisi ,parbaudiju ar echo kordinates viss pareiziar php izvades divs istais ,bet zimejums paradas nakosaja diva pa kreisi :) Link to comment Share on other sites More sharing options...
andrisp Posted October 1, 2008 Report Share Posted October 1, 2008 Kāds sakars te ar PHP ? Anyway - parādi kodu (HTML + CSS). Link to comment Share on other sites More sharing options...
Wuu Posted October 1, 2008 Author Report Share Posted October 1, 2008 nevaru sezu no mobila slimnica :) anyway apmaniju to css un liku php izvadit zimejumu pa 1divu pa labi tagad zimejums ir istaja diva... nav ko spamot bez koda jus man palidzet nevaresiet :( Link to comment Share on other sites More sharing options...
marcis Posted October 1, 2008 Report Share Posted October 1, 2008 OFF: Tu arī slimnīcā ar mobīlo programmē? Link to comment Share on other sites More sharing options...
Wuu Posted October 1, 2008 Author Report Share Posted October 1, 2008 ne uz portativa :) Link to comment Share on other sites More sharing options...
bubu Posted October 1, 2008 Report Share Posted October 1, 2008 nevaru sezu no mobila slimnica Kāpēc tekstu forumā tu vari ierakstīt, bet andrisp prasīto kodu nevari? Link to comment Share on other sites More sharing options...
Wuu Posted October 1, 2008 Author Report Share Posted October 1, 2008 Kods ir slepens! P.s. Neta sezu no mobila ,bet kods ir uz portativa, taka nevaru iekopet :( Link to comment Share on other sites More sharing options...
Recommended Posts