Changeananan Designirƙirar Gidan Yanar Gizo tare da Babban Tasiri

Lokacin da na ƙaddamar da sabon rukunin yanar gizo, Ina so in ƙara wani nau'in fasali a cikin shafin yanar gizon wanda zai haskaka sabon shafin. Koyaya, ban so in bayyana shi a sarari ko cire kansa daga shafin yanar gizon ba.

Amsar kaɗan ce, amma tana da tasirin gaske… ƙara kankanin sabon hoto zuwa mahaɗin cikin menu na kewayawa. (danna ta hanyar zuwa post don ganin shi a aikace). Na yi gudu tare da mahaɗin na tsawon kwanaki da kaina kuma na sami zirga-zirgar zirga-zirga. Na kara hoton kuma yanzu kashi 8.5% na fitowar fitarwa yana tafiya ta wannan hanyar mahaɗin!

Maimakon a saka hoton a zahiri a cikin HTML, sai nayi amfani da CSS don in iya amfani da shi akan wasu sababbin fasali a gaba. CSS yayi kama da wannan:

span.new {background: url (/mytheme/new.png) ba-maimaita dama dama; padding: 0px 18px 0px 0px; }

Bayanin ya kafa hoton a saman hannun dama na rubutu kuma ya dakatar da maimaita shi. Jirgin yana tura fifikon pixels 18 ya wuce rubutun don hotonku ya kasance a sarari. Sanya shi a cikin shafin yanzu yana da sauƙi, Ina amfani da alamar taƙaice a kusa da rubutu na:

Bayani

Wasu lokuta ba ya ɗaukar abu mai yawa don nuna masu karatu a cikin sabon shugabanci!

3 Comments

  1. 1

    Abin ban mamaki! Don haka mai sauƙi kuma mai kyau… Wannan shine irin abubuwan da suke ƙara darajar blog: mai sauƙi, mai kyau, mai amfani mai amfani… Thanks!

  2. 2
  3. 3

Me kuke tunani?

Wannan shafin yana amfani da Akismet don rage spam. Koyi yadda aka sarrafa bayanan bayaninka.