Sasa Posted June 15, 2006 Report Share Posted June 15, 2006 Kas man izskaidrot taadu lietu, kad es ielieku bildi pozizioneejot uz 50% no augshas un no kreisaas malas. Sanaak taa ka bildes augsheejais kreisais stuuris ir pa monitora centru, bet taalaak bilde paraadas izejot no taa stuura un gala rezuultaataa bilde galiigi nav pa centru! Ko es daru nepareizi? Link to comment Share on other sites More sharing options...
Kavacky Posted June 15, 2006 Report Share Posted June 15, 2006 Pozicionējot to bildi no augšas un kreisās malas, tu pats to stūri noliec 50% no viena un tikpat no otra, viss pareizi rādās. Link to comment Share on other sites More sharing options...
Sasa Posted June 15, 2006 Author Report Share Posted June 15, 2006 kaa tad man tomeer dabuut to bildiiti centraa. Kaa buus pareizi? Link to comment Share on other sites More sharing options...
bubu Posted June 15, 2006 Report Share Posted June 15, 2006 ja nemaldos, tad viens no hakiem bija: margin-left: -100px; kur tie 100 ir bildes platuma puse. Cits veids ir: margin-left: auto; un norādīt konkrētu width vērtību pikseļos. Link to comment Share on other sites More sharing options...
Sasa Posted June 15, 2006 Author Report Share Posted June 15, 2006 taadaa veidaa vispaar atsakaas straadat! es dabuuju vienu CSS kodu bet nezinu kaa to piedabuut pie taa JS lai viss straadaatu korekti CSS: MG.displayed { display: block; margin-left: auto; margin-right: auto } ... <IMG class="displayed" src="..." alt="..."> visaadi pameeginaaju nekadi nevaru izdomaat kaa sakaartot kodu taa lai lielaa bilde buutu blokaa un izmantotu klasi displeyed Link to comment Share on other sites More sharing options...
AndzX8-842 Posted June 22, 2006 Report Share Posted June 22, 2006 #elements { margin:auto; margin-top:25%; } FF darbojas. Vienkārši, ātri un bez sāpēm. Link to comment Share on other sites More sharing options...
Recommended Posts