CSS Style don Code a kan Blog

CSS

Wani abokina ya tambaye ni yadda zan sanya yankuna masu lamba a kan shigowar bulogina na ƙarshe. A zahiri nayi 'karyar' lambar yanki ta hanyar amfani da salo. A cikin Blogger, zaka iya shirya samfurinka. Na kara da wadannan salon:

p.code {font-family: Courier Sabo; girman font: 8pt; salon kan iyaka: shigar ciki; nisa-nisa: 3px; padding: 5px; launi-launi: #FFFFFF; layin-layi: 100%; gefe: 10px}

Mataki na gaba shine shirya alama a cikin 'Shirya Html'. Kawai ina nuna sabon salo ne ta hanyar sanya alama. Voila! Rushe salo:

  • Saita font zuwa Courier New… yayi kama da edita na kida
  • Sanya girman font zuwa 8pt don ya duba dama
  • Sanya salon iyakar sakin layi zuwa 'shigar'. Wannan yana yin kwatancen yadda kayan kwalliyar kwalliya suke a shafin.
  • Sanya fadin iyaka zuwa pixels 2 ko 3. Wannan yana sa salon kan iyaka yayi daidai.
  • Padding yana sanya tazara tsakanin iyaka da rubutu a ciki.
  • Launin bayan fage… saita shi zuwa fari (#FFFFFF)
  • Tsayin layi - Na daidaita wannan zuwa 100% saboda wasu daga cikin sauran salon a cikin taken blogger ɗin na sanya tsayin layi na kusan 200%
  • Saita gefen zuwa 10 px. Wannan yana motsa sakin layi (p tag) 10 pixels nesa da komai.

Wannan duk akwai ma dai! Noteaya daga cikin bayanin: Editan da ya zo tare da Blogger ba zai iya nunawa kamar yadda zai bayyana a cikin shafinku ba. Amma yana aiki kuma yana da kyau!

Notearin bayanin kula… bayan kun yi gyara zuwa alamar, editan Blogger yana son yin amfani da shi ba da daɗewa ba a cikin gidanku. Yana da ɗan ban haushi! Shawarata zata kasance ita ce ta rubuta dukkan sakonnin ka sannan kuma a sake yin karamin daga baya.

Bayani na ƙarshe… tabbatar da amfani da abubuwan HTML don nuna alamunku! Wasu ma'aurata:

  • Quotes (") sune"
  • > shine>
  • > shine>

Kiyi Hakuri!

3 Comments

  1. 1
  2. 2
  3. 3

    i abu babu buƙatar rubuta yanzu fiye da. zaka iya amfani da editoci masu taimako. zaka iya zaɓar launi, iyaka da dai sauransu.

Me kuke tunani?

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