Ebintu bya HTML ebikulu ebikoleddwa mu sitayiro era ne binywezebwa n’ebika ebigaziyizibwa.
Emitwe gyonna egya HTML, <h1>
okuyita <h6>
mu giriwo.
Bootstrap's global default font-size
eri 14px , nga a line-height
ya 20px . Kino kikozesebwa ku <body>
n’ennyiriri zonna. Okugatta ku ekyo, <p>
(ennyiriri) zifuna margin eya wansi ey’ekitundu kya line-height yaabwe (10px nga bwe kibadde).
Nullam quis risus eget ekikuta ky’omusajja eky’okwewunda vel eu leo. Cum sociis natoque penatibus ne magnis dis parturient montes, nascetur okusekererwa mus. Nullam id dolor id nibh ebidduka ebidduka ebidduka.
Cum sociis natoque penatibus ne magnis dis parturient montes, nascetur okusekererwa mus. Donec ullamcorper nulla etali ya metus omusuubuzi fringilla. Duis mollis, est non commodo luctus, nisi erat ekika ky’omugongo, eget lacinia odio sem nec elit. Donec ullamcorper nulla etali ya metus omusuubuzi fringilla.
Maecenas sed diam eget risus varius blandit okutuula ate nga si magna. Donec id elit etali ya mi porta gravida ku eget metus. Duis mollis, est non commodo luctus, nisi erat ekika ky’omugongo, eget lacinia odio sem nec elit.
<p> ... </p> nga bwe kiri
Akatundu kafuule ak’enjawulo ng’ogattako .lead
.
Vivamus sagittis lacus vel augue laoreet ekika kya faucibus eky’okugula ebintu. Duis mollis, est etali ya bugagga.
<p ekibiina = "okukulembera" > ... </p>
Minzaani y'okuwandiika yeesigamiziddwa ku nkyukakyuka bbiri eza LESS mu nkyukakyuka.less : @baseFontSize
ne @baseLineHeight
. Ekisooka ye base font-size ekozesebwa wonna ate ekyokubiri ye base line-height. Tukozesa enkyukakyuka ezo n’okubala okumu okwangu okukola margins, paddings, ne line-heights ez’ekika kyaffe kyonna n’ebirala. Zikole era Bootstrap ekwatagana.
Kozesa ebigambo ebiggumiza ebya HTML ebisookerwako nga biriko sitayiro ezitazitowa.
<small>
Okuggya okuggumiza inline oba blocks z’ebiwandiiko, kozesa tag entono.
Layini eno ey’ebiwandiiko etegeeza okutwalibwa ng’ennukuta ennungi.
<p> <small> Layini eno ey'ekiwandiiko etegeeza okutwalibwa ng'ennukuta ennungi. </obutono> </p>
Olw’okuggumiza ekitundu ky’ekiwandiiko nga kiriko font-weight esingako obuzito.
Ekitundu ky'ekiwandiiko kino wammanga kivvuunulwa ng'ekiwandiiko ekinene .
<strong> evvuunuddwa nga ekiwandiiko ekinene </strong>
Olw’okuggumiza akatundu k’ekiwandiiko nga kiriko ennukuta ensirifu.
Ekitundu ky'ekiwandiiko kino wammanga kivvuunulwa nga ekiwandiiko ekiwandiikiddwa mu italic .
<em> evvuunuddwa nga ekiwandiiko ekiwandiikiddwa mu italic </em>
Emitwe waggulu!Wulira nga oli wa ddembe okukozesa <b>
era <i>
mu HTML5. <b>
kigendereddwamu okulaga ebigambo oba ebisoko awatali kutuusa bukulu bwa kwongerako ate nga <i>
kisinga kuba kya ddoboozi, ebigambo eby’ekikugu n’ebirala.
Kyangu okuddamu okusengeka ebiwandiiko ku bitundu ebirina ebika by’okusengeka ebiwandiiko.
Ebiwandiiko ebiteekeddwa ku kkono.
Ebiwandiiko ebiteekeddwa wakati.
Ebiwandiiko ebiteekeddwa ku ddyo.
- <p class = "text-left" > Ebiwandiiko ebiteekeddwa ku kkono. </p>
- <p class = "text-center" > Ebiwandiiko ebiteekeddwa wakati . </p>
- <p class = "text-right" > Ebiwandiiko ebiteekeddwa ku ddyo. </p>
Tuusa amakulu ng’oyita mu langi n’engalo ntono ez’okussa essira ku bibiina by’omugaso.
Fusce dapibus, tellus ac ekivuma commodo, okutulugunya mauris nibh.
Etiam porta sem omusajja omunene ennyo omuto.
Donec ullamcorper nulla etali ya metus omusuubuzi fringilla.
Aenean eu leo quam. Okwewunda okw’ekika kya Pellentesque sem lacinia quam venenatis.
Duis mollis, est non commodo luctus, ekintu ekitali kya mugaso, ekiwuka ekiyitibwa porttitor ligula.
- <p ekibiina = "ekisirise" > Fusce dapibus, tellus ac ekivuma commodo, tortor mauris nibh. </p>
- <p class = "okulabula-ekiwandiiko" > Etiam porta sem malesuada magna mollis euismod. </p>
- <p class = "ekiwandiiko-ensobi" > Donec ullamcorper nulla etali ya metus auctor fringilla. </p>
- <p class = "ekiwandiiko-amawulire" > Aenean eu leo quam. Okwewunda okw’ekika kya Pellentesque sem lacinia quam venenatis. </p>
- <p class = "obuwanguzi bw'ekiwandiiko" > Duis mollis, est etali ya commodo luxus, nisi erat porttitor ligula. </p>
Stylized implementation of HTML's <abbr>
element for ebifupi n'enfunyiro okulaga enkyusa egaziyiziddwa ku hover. Ebifupi ebirina title
ekintu birina ensalosalo eya wansi eriko ennukuta entangaavu n’akabonero k’obuyambi ku hover, okuwa ensonga endala ku hover.
<abbr>
Ku biwandiiko ebigaziyiziddwa ku long hover of an abbreviation, ssaamu title
attribute.
Enfunyiro y'ekigambo attribute ye attr .
<abbr omutwe = "ekintu" > attr </abbr>
<abbr class="initialism">
Okwongerako .initialism
ku kifupi okufuna font-size entono katono.
HTML kye kintu ekisinga obulungi okuva ku mugaati ogwasalibwa.
<abbr title = "Olulimi lw'okussaako akabonero k'ekiwandiiko ekisukkiridde" class = "okusooka" > HTML </abbr>
Waayo ebikwata ku jjajja asinga okumpi oba omubiri gwonna ogw’omulimu gw’oyinza okutuukirira.
<address>
Kuuma ensengeka ng'omaliriza ennyiriri zonna ne <br>
.
- <endagiriro>
- <strong> Ekitongole kya Twitter, Inc. </strong><br>
- 795 Folsom Ave, Ekisenge 600 <br>
- San Francisco, CA 94107 mu kibuga Kampala
- <abbr omutwe = "Essimu" > P: </abbr> (123) 456-7890
- </endagiriro>
- <endagiriro>
- <strong> Amannya mu bujjuvu </strong><br>
- <a href = "mailto:#" > [email protected] </a>
- </endagiriro>
Olw'okujuliza ebitundu by'ebirimu okuva mu nsibuko endala munda mu kiwandiiko kyo.
Zinga HTML<blockquote>
yonna nga quote. Ku bigambo ebitereevu tusaba .<p>
Lorem ipsum dolor okutuula amet, okusengejja amasavu elit. Namba enzijuvu posuere erat a ante.
- <okuziyiza>
- <p> Lorem ipsum dolor okutuula amet, okusengejja okusiiga elit. Namba enzijuvu posuere erat a ante. </p>
- </blockquote> nga bwe kiri
Omusono n'ebirimu bikyuka olw'enjawulo ennyangu ku blockquote eya bulijjo.
Okwongerako <small>
tag okuzuula ensibuko. Zinga erinnya ly'omulimu gw'ensibuko mu <cite>
.
Lorem ipsum dolor okutuula amet, okusengejja amasavu elit. Namba enzijuvu posuere erat a ante.
Omuntu omututumufu mu Source Title
- <okuziyiza>
- <p> Lorem ipsum dolor okutuula amet, okusengejja okusiiga elit. Namba enzijuvu posuere erat a ante. </p>
- <small> Omuntu omututumufu <cite title = "Omutwe gw'Ensibuko" > Omutwe gw'Ensibuko </cite></small>
- </blockquote> nga bwe kiri
Kozesa .pull-right
ku blockquote etengeddwa, etereezeddwa ku ddyo.
- <blockquote class = "okusika-ku ddyo" >
- ...
- </blockquote> nga bwe kiri
Olukalala lw’ebintu ebirimu ensengeka etaliiko nsonga mu bulambulukufu.
- <ul> nga bwe kiri
- <li> ... </li> nga bwe kiri
- </ul>
Olukalala lw’ebintu omulagiriro mwe gukola mu bulambulukufu.
- <ol> nga bwe kiri
- <li> ... </li> nga bwe kiri
- </ol>
Ggyawo list-style
padding eya bulijjo ne eya kkono ku bintu eby'olukalala (abaana ab'amangu bokka).
- <ul class = "etaliiko sitayiro" >
- <li> ... </li> nga bwe kiri
- </ul>
Teeka ebintu byonna eby’olukalala ku layini emu nga olina inline-block
ne padding ezimu ezitangaala.
- <ul class = "mu layini" >
- <li> ... </li> nga bwe kiri
- </ul>
Olukalala lw’ebigambo n’ennyonnyola ezikwatagana nabyo.
- <dl> nga bwe kiri
- <dt> ... </dt> nga bwe kiri
- <dd> ... </dd> nga bwe kiri
- </dl>
Kola ebigambo n’ennyonnyola mu <dl>
layini ku mabbali.
- <dl class = "dl-ekiwanvu" >
- <dt> ... </dt> nga bwe kiri
- <dd> ... </dd> nga bwe kiri
- </dl>
Emitwe waggulu!Enkalala z'ennyonnyola ez'okwebungulula zijja kusalako ebigambo ebiwanvu ennyo okutuuka mu kutereeza ennyiriri eya kkono text-overflow
. Mu viewports enfunda, zijja kukyuka okudda ku default stacked layout.
Zinga ebitundutundu bya koodi ebiri mu layini ne <code>
.
<section>
erina okuzingibwa nga inline.
- Okugeza , <koodi > & lt ; ekitundu & gt ;</ code > erina okuzingibwa nga mu layini .
Kozesa <pre>
ku layini eziwera eza koodi. Kakasa nti otolokako enkoona zonna mu koodi okusobola okulaga obulungi.
<p>Ekiwandiiko eky'okulabirako wano...</p>
- <pre>
- <p>Ekiwandiiko eky'okulabirako wano...</p>
- </pre>
Emitwe waggulu!Kakasa nti okuuma code munda mu <pre>
tags okumpi ne kkono nga bwe kisoboka; kijja kulaga tabu zonna.
Oyinza okugattako .pre-scrollable
kiraasi ejja okuteekawo max-height ya 350px n'okuwa y-axis scrollbar.
Ku sitayiro enkulu —okupakinga ekitangaala n’okugabanya okw’okwebungulula kwokka —yongera ku kiraasi ey’omusingi .table
ku yonna <table>
.
# . | Erinnya erisooka | Erinnya erisemba | Erinnya ly'omukozesa |
---|---|---|---|
1. | Mark | Otto bwe yabadde | @mdo |
2. | Yakobo | Thornton nga bwe kiri | @obunene |
3. | Larry | Ekinyonyi |
- < ekibiina ky'emmeeza = "emmeeza" >
- ...
- </emmeeza>
Okwongerako kiraasi yonna ku zino wammanga ku kiraasi .table
ey’omusingi.
.table-striped
Okwongera zebra-striping ku lunyiriri lwonna olw'emmeeza munda mu <tbody>
via :nth-child
CSS selector (tekiri mu IE7-8).
# . | Erinnya erisooka | Erinnya erisemba | Erinnya ly'omukozesa |
---|---|---|---|
1. | Mark | Otto bwe yabadde | @mdo |
2. | Yakobo | Thornton nga bwe kiri | @obunene |
3. | Larry | Ekinyonyi |
- < ekibiina ky'emmeeza = "emmeeza eriko emisono" >
- ...
- </emmeeza>
.table-bordered
Ku mmeeza gattako ensalosalo n’enkoona ezeetooloovu.
# . | Erinnya erisooka | Erinnya erisemba | Erinnya ly'omukozesa |
---|---|---|---|
1. | Mark | Otto bwe yabadde | @mdo |
Mark | Otto bwe yabadde | @getbootstrap nga bwe kiri | |
2. | Yakobo | Thornton nga bwe kiri | @obunene |
3. | Larry Ekinyonyi |
- <table class = "emmeeza eriko ensalosalo" >
- ...
- </emmeeza>
.table-hover
Ssobozesa embeera ya hover ku nnyiriri z'emmeeza munda mu <tbody>
.
# . | Erinnya erisooka | Erinnya erisemba | Erinnya ly'omukozesa |
---|---|---|---|
1. | Mark | Otto bwe yabadde | @mdo |
2. | Yakobo | Thornton nga bwe kiri | @obunene |
3. | Larry Ekinyonyi |
- < ekibiina ky'emmeeza = "emmeeza-hover" >
- ...
- </emmeeza>
.table-condensed
Afuula emmeeza okubeera ennyangu nga esala cell padding mu bitundu bibiri.
# . | Erinnya erisooka | Erinnya erisemba | Erinnya ly'omukozesa |
---|---|---|---|
1. | Mark | Otto bwe yabadde | @mdo |
2. | Yakobo | Thornton nga bwe kiri | @obunene |
3. | Larry Ekinyonyi |
- <emmeeza class = "emmeeza emmeeza-condensed" >
- ...
- </emmeeza>
Kozesa kiraasi ezikwata ku nsonga okukuba langi ku nnyiriri z’emmeeza.
Essomo | Okunnyonnyola |
---|---|
.success |
Kiraga ekikolwa ekituuse ku buwanguzi oba ekirungi. |
.error |
Kiraga ekikolwa eky’akabi oba ekiyinza okuba ekibi. |
.warning |
Kiraga okulabula okuyinza okwetaaga okufaayo. |
.info |
Ekozesebwa nga eky'okuddako ku sitayiro ezisookerwako. |
# . | Ekyamaguzi | Okusasula Kutwaliddwa | Ennyimirira |
---|---|---|---|
1. | TB - Buli mwezi | 01/04/2012 nga bwe kiri | Okukkiriza |
2. | TB - Buli mwezi | 02/04/2012 nga bweri | Yagaanyi |
3. | TB - Buli mwezi | 03/04/2012 nga bwe kiri | Tekinagwa |
4. | TB - Buli mwezi | 04/04/2012 nga bwe kiri | Kuba mu ssimu okukakasa |
- ...
- < tr class = "obuwanguzi" >
- <td> 1 < /td> nga bwe kiri
- <td>TB - Buli mwezi</ td >
- <td> 01 / 04 / 2012 < /td>
- <td>Ekikkiriziddwa</ td >
- </ tr >
- ...
Olukalala lw'ebintu bya HTML eby'emmeeza ebiwagirwa n'engeri gye birina okukozesebwa.
Erinnya | Okunnyonnyola |
---|---|
<table> |
Okuzinga elementi okulaga data mu nkola ya tabular |
<thead> |
Ekintu kya konteyina eky'ennyiriri z'omutwe gw'emmeeza ( <tr> ) okuwandiika empagi z'emmeeza |
<tbody> |
Ekintu ekitereka eky’ennyiriri z’emmeeza ( <tr> ) mu mubiri gw’emmeeza |
<tr> |
Ekintu ekitereka eky'ekibinja ky'obutoffaali bw'emmeeza ( <td> oba <th> ) ekirabika ku lunyiriri lumu |
<td> |
Akasenge k'emmeeza akasookerwako |
<th> |
Akasengejja k’emmeeza ak’enjawulo ku biwandiiko by’ennyiriri (oba olunyiriri, okusinziira ku bunene n’okuteekebwa). |
<caption> |
Ennyonyola oba mu bufunze ebyo emmeeza by’ekwata naddala eby’omugaso eri abasomi ku ssirini |
- <emmeeza>
- <ebigambo ebikulu> ... </ebigambo ebitonotono>
- <omutwe>
- <tr>
- <th> ... </th> nga bwe kiri
- <th> ... </th> nga bwe kiri
- </tr>
- </tomutwe>
- <omubiri>
- <tr>
- <td> ... </td> nga bwe kiri
- <td> ... </td> nga bwe kiri
- </tr>
- </tbody>
- </emmeeza>
Ebifuga ffoomu ssekinnoomu bifuna sitayiro, naye awatali kiraasi yonna eyeetaagisa ku <form>
oba enkyukakyuka ennene mu markup. Kivaamu ebiwandiiko ebitumbiddwa, ebiteekeddwa ku kkono waggulu ku bifuga foomu.
- <foomu>
- <ekifo ky'ennimiro>
- <olugero> Enfumo </legend>
- <label> Erinnya ly'akabonero </label>
- <input type = "text" placeholder = "Wandiika ekintu..." >
- <span class = "help-block" > Eky'okulabirako ekiwandiiko ky'obuyambi eky'omutendera gw'okuziyiza wano. </span>
- <label class = "akabokisi k'okukebera" >
- <input type = "checkbox" > Nkebera
- </label>
- <button type = "okuweereza" class = "btn" > Okuwaayo </button>
- </ennimiroset>
- </form>
Mu Bootstrap mulimu ensengeka za ffoomu ssatu ez’okwesalirawo ez’okukozesa bulijjo.
Yongera .form-search
ku foomu ne .search-query
ku <input>
for an extra-rounded text input.
- < ekibiina kya ffoomu = "foomu-okunoonya" >
- <input type = "text" class = "okubuuza-okunoonya-okuyingiza-omukutu" >
- < ekika kya button = "okuweereza" class = "btn" > Noonya </button>
- </form>
Okwongerako .form-inline
ku bipande ebiteekeddwa ku kkono n'ebifuga mu layini-block okusobola ensengeka entono.
- < ekibiina kya ffoomu = "foomu-mu layini" >
- < ekika ky'okuyingiza = "ekiwandiiko" ekibiina = "okuyingiza-ekitono" ekifo = "Email" >
- < ekika ky'okuyingiza = "ekigambo ky'okuyita" ekibiina = "okuyingiza-ekitono" ekifo = "Ekigambo ky'okuyingira" >
- <label class = "akabokisi k'okukebera" >
- <input type = "checkbox" > Nzijukira
- </label>
- < ekika kya button = "okuweereza" class = "btn" > Yingira </button>
- </form>
Laganya ebiwandiiko ku ddyo era obitengejja ku kkono okubifuula okulabika ku layini y’emu n’ebifuga. Yeetaaga enkyukakyuka ezisinga okubeera ez'obubonero okuva ku ffoomu eya bulijjo:
.form-horizontal
ku foomu.control-group
.control-label
ku label.controls
okusobola okukwataganya obulungi
- < ekibiina kya ffoomu = "ekifaananyi-eky'okwebungulula" >
- <div class = "ekibinja-ekifuga" >
- <label class = "okufuga-akabonero" for = "okuyingizaEmail" > Email </label>
- <div class = "ebifuga" >
- < ekika ky'okuyingiza = "ekiwandiiko" id = "okuyingizaEmail" ekifo = "Email" >
- </div> nga bwe kiri
- </div> nga bwe kiri
- <div class = "ekibinja-ekifuga" >
- <label class = "control-label" for = "Ekigambo ky'okuyingiza" > Ekigambo ky'okuyingira </label>
- <div class = "ebifuga" >
- < ekika ky'okuyingiza = "ekigambo ky'okuyingira" id = "ekigambo ky'okuyingira" ekifo = "Ekigambo ky'okuyingira" >
- </div> nga bwe kiri
- </div> nga bwe kiri
- <div class = "ekibinja-ekifuga" >
- <div class = "ebifuga" >
- <label class = "akabokisi k'okukebera" >
- <input type = "checkbox" > Nzijukira
- </label>
- < ekika kya button = "okuweereza" class = "btn" > Yingira </button>
- </div> nga bwe kiri
- </div> nga bwe kiri
- </form>
Eby'okulabirako by'ebifuga foomu eya bulijjo ebiwagirwa mu nsengeka ya foomu ey'ekyokulabirako.
Okufuga foomu okusinga okumanyibwa, ennimiro z’okuyingiza ezesigamiziddwa ku biwandiiko. Mulimu obuwagizi eri ebika byonna ebya HTML5: ebiwandiiko, ekigambo ky’okuyingira, olunaku obudde, olunaku obudde-eky’omu kitundu, olunaku, omwezi, obudde, wiiki, ennamba, email, url, okunoonya, tel, ne langi.
Yeetaaga okukozesa a eragiddwa type
ekiseera kyonna.
- < ekika ky'okuyingiza = "ekiwandiiko" ekifo = "Okuyingiza ekiwandiiko" >
Okufuga foomu ewagira ennyiriri eziwera ez’ebiwandiiko. Kyusa rows
attribute nga bwe kyetaagisa.
- < ennyiriri z'ekitundu ky'ebiwandiiko = "3" ></ekitundu ky'ebiwandiiko>
Checkboxes za kulonda option emu oba eziwera mu list ate radios za kulonda option emu okuva mu bingi.
- <label class = "akabokisi k'okukebera" >
- < ekika ky'okuyingiza = "akabokisi k'okukebera" omuwendo = "" >
- Eky’okukola ekisooka kiri kino ne kiri —kakasa nti ossaamu lwaki kirungi nnyo
- </label>
- <label class = "leediyo" >
- <input type = "radio" erinnya = "optionsRadios" id = "optionsRadios1" omuwendo = "enkola1" ekebereddwa >
- Eky’okukola ekisooka kiri kino ne kiri —kakasa nti ossaamu lwaki kirungi nnyo
- </label>
- <label class = "leediyo" >
- < ekika ky'okuyingiza = "leediyo" erinnya = "eby'okulondaRadio" id = "eby'okulondaRadio2" omuwendo = "okulonda2" >
- Enkola eyokubiri eyinza okuba ekintu ekirala era okugilonda kijja kuggyawo eky’okulonda ekisooka
- </label>
Okwongera .inline
ekibiina ku lunyiriri lw’ebibokisi ebikebera oba leediyo okulaba ebifuga birabika ku layini y’emu.
- <label class = "akabokisi k'okukebera mu layini" >
- < ekika ky'okuyingiza = "akabokisi k'okukebera" id = "akabokisi k'okukebera mu layini1" omuwendo = "okulonda1" > 1
- </label>
- <label class = "akabokisi k'okukebera mu layini" >
- < ekika ky'okuyingiza = "akabokisi k'okukebera" id = "akabokisi k'okukebera mu layini2" omuwendo = "okulonda2" > 2
- </label>
- <label class = "akabokisi k'okukebera mu layini" >
- < ekika ky'okuyingiza = "akabokisi k'okukebera" id = "akabokisi k'okukebera mu layini3" omuwendo = "okulonda3" > 3
- </label>
Kozesa eky'okulonda ekisookerwako oba lambika a multiple="multiple"
okulaga eby'okulonda ebingi omulundi gumu.
- <londa>
- <ekyokulonda> 1 </ekyokulonda>
- <ekyokulonda> 2 </ekyokulonda>
- <ekyokulonda> 3 </ekyokulonda>
- <ekyokulonda> 4 </ekyokulonda>
- <ekyokulonda> 5 </ekyokulonda>
- </londa>
- <londa ebingi = "ebingi" >
- <ekyokulonda> 1 </ekyokulonda>
- <ekyokulonda> 2 </ekyokulonda>
- <ekyokulonda> 3 </ekyokulonda>
- <ekyokulonda> 4 </ekyokulonda>
- <ekyokulonda> 5 </ekyokulonda>
- </londa>
Okwongerako waggulu ku bifuga bya bbulawuzi ebiriwo, Bootstrap erimu ebitundu bya ffoomu ebirala eby’omugaso.
Okwongerako ebiwandiiko oba obutambi nga tonnaba oba oluvannyuma lw’okuyingiza kwonna okwesigamiziddwa ku biwandiiko. Kola weetegereze nti select
elementi teziwagirwa wano.
Zinga an .add-on
ne an input
n’ekimu ku kiraasi bbiri okusooka oba okugattako ekiwandiiko ku kiyingiziddwa.
- <div class = "okuyingiza-okusooka" >
- <span class = "okugattako" > @ </span>
- <input class = "span2" id = "prependedInput" ekika = "ekiwandiiko" ekifo = "Erinnya ly'omukozesa" >
- </div> nga bwe kiri
- <div class = "okuyingiza-okugattako" >
- < ekibiina ky'okuyingiza = "span2" id = "okuyingiza okugattibwako" ekika = "ekiwandiiko" >
- <span class = "okugattako" > .00 </span>
- </div> nga bwe kiri
Kozesa kiraasi zombi n'ebikozesebwa bibiri ebya .add-on
okusooka n'okugattako ekiyingizibwa.
- <div class = "okuyingiza-okusooka okuyingiza-okugattako" >
- <span class = "okugattako" > $ </span>
- < ekibiina ky'okuyingiza = "span2" id = "okuyingizibwa kwayongerwako" ekika = "ekiwandiiko" >
- <span class = "okugattako" > .00 </span>
- </div> nga bwe kiri
Mu kifo kya a <span>
n’ebiwandiiko, kozesa a .btn
okugattako bbaatuuni (oba bbiri) ku kiyingiziddwa.
- <div class = "okuyingiza-okugattako" >
- < ekibiina ky'okuyingiza = "span2" id = "appendedInputButton" ekika = "ekiwandiiko" >
- < ekibiina kya button = "btn" ekika = "button" > Genda! </button>
- </div> nga bwe kiri
- <div class = "okuyingiza-okugattako" >
- < ekibiina ky'okuyingiza = "span2" id = "appendedInputButtons" ekika = "ekiwandiiko" >
- <button class = "btn" ekika = "button" > Okunoonya </button>
- <button class = "btn" ekika = "button" > Eby'okulonda </button>
- </div> nga bwe kiri
- <div class = "okuyingiza-okugattako" >
- < ekibiina ky'okuyingiza = "span2" id = "appendedDropdownButton" ekika = "ekiwandiiko" >
- <div ekibiina = "btn-ekibinja" >
- <button class = "btn okugwa-okukyusa" data-okukyusa = "okugwa" >
- Okikolwa
- <span class = "okulabirira" </span>
- </button>
- <ul class = "menu-egwa wansi" >
- ...
- </ul>
- </div> nga bwe kiri
- </div> nga bwe kiri
- <div class = "okuyingiza-okusooka" >
- <div ekibiina = "btn-ekibinja" >
- <button class = "btn okugwa-okukyusa" data-okukyusa = "okugwa" >
- Okikolwa
- <span class = "okulabirira" </span>
- </button>
- <ul class = "menu-egwa wansi" >
- ...
- </ul>
- </div> nga bwe kiri
- < ekibiina ky'okuyingiza = "span2" id = "prependedDropdownButton" ekika = "ekiwandiiko" >
- </div> nga bwe kiri
- <div class = "okuyingiza-okusooka okuyingiza-okugattako" >
- <div ekibiina = "btn-ekibinja" >
- <button class = "btn okugwa-okukyusa" data-okukyusa = "okugwa" >
- Okikolwa
- <span class = "okulabirira" </span>
- </button>
- <ul class = "menu-egwa wansi" >
- ...
- </ul>
- </div> nga bwe kiri
- <input class = "span2" id = "eyongerwakoPrependedDropdownButton" ekika = "ekiwandiiko" >
- <div ekibiina = "btn-ekibinja" >
- <button class = "btn okugwa-okukyusa" data-okukyusa = "okugwa" >
- Okikolwa
- <span class = "okulabirira" </span>
- </button>
- <ul class = "menu-egwa wansi" >
- ...
- </ul>
- </div> nga bwe kiri
- </div> nga bwe kiri
- <foomu>
- <div class = "okuyingiza-okusooka" >
- <div ekibiina = "btn-ekibinja" > ... </div>
- < ekika ky'okuyingiza = "ekiwandiiko" >
- </div> nga bwe kiri
- <div class = "okuyingiza-okugattako" >
- < ekika ky'okuyingiza = "ekiwandiiko" >
- <div ekibiina = "btn-ekibinja" > ... </div>
- </div> nga bwe kiri
- </form>
- < ekibiina kya ffoomu = "foomu-okunoonya" >
- <div class = "okuyingiza-okugattako" >
- < ekika ky'okuyingiza = "ekiwandiiko" ekibiina = "span2 okunoonya-okubuuza" >
- < ekika kya button = "okuweereza" class = "btn" > Noonya </button>
- </div> nga bwe kiri
- <div class = "okuyingiza-okusooka" >
- < ekika kya button = "okuweereza" class = "btn" > Noonya </button>
- < ekika ky'okuyingiza = "ekiwandiiko" ekibiina = "span2 okunoonya-okubuuza" >
- </div> nga bwe kiri
- </form>
Kozesa kiraasi z’obunene obw’enjawulo nga .input-large
oba okukwataganya ebiyingiziddwa byo ku sayizi z’ennyiriri za giridi ng’okozesa .span*
kiraasi.
Fuula ekintu kyonna <input>
oba <textarea>
elementi okweyisa nga elementi ya block level.
- <input class = "okuyingiza-okuziyiza-omutendera" ekika = "ekiwandiiko" ekifo = " .okuyingiza -okuziyiza-omutendera" >
- <input class = "input-mini" ekika = "ekiwandiiko" ekifo = " .input -mini" >
- <input class = "okuyingiza-okutono" ekika = "ekiwandiiko" ekifo = " .okuyingiza -okutono" >
- <input class = "input-medium" ekika = "ekiwandiiko" ekifo = " .input -medium" >
- <input class = "okuyingiza-ekinene" ekika = "ekiwandiiko" ekifo = " .okuyingiza -ekinene" >
- <input class = "input-xlarge" ekika = "ekiwandiiko" ekifo = " .input -xlarge" >
- <input class = "input-xxlarge" ekika = "ekiwandiiko" ekifo = " .input -xxlarge" >
Emitwe waggulu!Mu nkyusa ezijja, tujja kuba tukyusa enkozesa ya kiraasi zino ez'okuyingiza ez'enjawulo okukwatagana ne sayizi zaffe eza button. Okugeza, .input-large
ejja kwongera ku padding ne font-size y'ekintu ekiyingiziddwa.
Kozesa .span1
to .span12
ku biyingizibwa ebikwatagana ne sayizi ze zimu ez’ennyiriri za giridi.
- < ekibiina ky'okuyingiza = "span1" ekika = "ekiwandiiko" ekifo = " .span1 " >
- < ekibiina ky'okuyingiza = "span2" ekika = "ekiwandiiko" ekifo = " .span2 " >
- < ekibiina ky'okuyingiza = "span3" ekika = "ekiwandiiko" ekifo = " .span3 " >
- <londa ekibiina = "span1" >
- ...
- </londa>
- <londa ekibiina = "span2" >
- ...
- </londa>
- <londa ekibiina = "span3" >
- ...
- </londa>
Ku biyingizibwa bya giridi ebingi buli layini, kozesa ekibiina .controls-row
ky’omukyusa okusobola okuteeka ebanga erituufu . Etengejja ebiyingizibwa okugwa white-space, eteeka margins entuufu, era egogola float.
- <div class = "ebifuga" >
- < ekibiina ky'okuyingiza = "span5" ekika = "ekiwandiiko" ekifo = " .span5 " >
- </div> nga bwe kiri
- <div class = "efuga ebifuga-olunyiriri" >
- < ekibiina ky'okuyingiza = "span4" ekika = "ekiwandiiko" ekifo = " .span4 " >
- < ekibiina ky'okuyingiza = "span1" ekika = "ekiwandiiko" ekifo = " .span1 " >
- </div> nga bwe kiri
- ...
Yanjula data mu ffoomu etali ya kulongoosebwa nga tokozesezza bubonero bwa foomu yennyini.
- <span class = "input-xlarge uneditable-input" > Omuwendo ogumu wano </span>
Komekkereza foomu n'ekibinja ky'ebikolwa (buttons). Bwe ziteekebwa munda mu a .form-actions
, obutambi bujja kuyingizibwa mu ngeri ey’otoma okusimba ennyiriri n’ebifuga foomu.
- <div class = "ebikolwa-eby'engeri" >
- <button type = "submit" class = "btn btn-primary" > Teeka enkyukakyuka </button>
- < ekika kya button = "button" class = "btn" > Sazaamu </button>
- </div> nga bwe kiri
Obuwagizi bw'omutendera gwa inline ne block olw'ekiwandiiko ky'obuyambi ekirabika okwetoloola ebifuga foomu.
- <input type = "text" ><span class = "obuyambi-mu layini" > Ekiwandiiko ky'obuyambi mu layini </span>
- <input type = "text" ><span class = "help-block" > Ekisenge ekiwanvu eky'ekiwandiiko ky'obuyambi ekimenya ku layini empya era ekiyinza okugaziwa okusukka layini emu. </span>
Okuwa endowooza eri abakozesa oba abagenyi nga balina embeera z’okuddamu ezisookerwako ku bifuga foomu n’ebiwandiiko.
Tuggyawo outline
sitayiro ezisookerwako ku bifuga ffoomu ezimu ne tussa a box-shadow
mu kifo kyayo ku :focus
.
- <input class = "input-xlarge" id = "okussa essiraInput" ekika = "ekiwandiiko" value = "Kino kitunuuliddwa..." >
Ebiyingizibwa mu sitayiro nga biyita mu nkola ya bbulawuzi eya bulijjo ne :invalid
. Laga a type
, yongera ku kintu required
singa ennimiro si ya kwesalirawo, era (bwe kiba kituufu) lambika a pattern
.
Kino tekisangibwa mu nkyusa za Internet Explorer 7-9 olw'obutaba na buwagizi bwa CSS pseudo selectors.
- < ekibiina ky'okuyingiza = "span3" ekika = "email" yeetaagibwa >
Okwongerako disabled
ekintu ku kiyingizibwa okuziyiza okuyingiza kw’omukozesa n’okutandikawo okutunula okw’enjawulo katono.
- <input class = "input-xlarge" id = "disabledInput" type = "ekiwandiiko" ekifo = "Okuyingiza okulemesa wano..." kulemeseddwa >
Bootstrap erimu emisono gy'okukakasa ensobi, okulabula, info, n'obubaka bw'obuwanguzi. Okusobola okukozesa, yongera ku kiraasi esaanira ku bimwetoolodde .control-group
.
- <div class = "okulabula kw'ekibinja ekifuga" >
- <label class = "control-label" for = "okuyingizaOkulabula" > Okuyingiza n'okulabula </label>
- <div class = "ebifuga" >
- < ekika ky'okuyingiza = "ekiwandiiko" id = "Okulabula okuyingiza" >
- <span class = "help-inline" > Waliwo ekiyinza okuba nga kyatambudde obubi </span>
- </div> nga bwe kiri
- </div> nga bwe kiri
- <div class = "ensobi y'ekibinja-ekifuga" >
- <label class = "control-label" for = "Ensobi y'okuyingiza" > Okuyingiza n'ensobi </label>
- <div class = "ebifuga" >
- < ekika ky'okuyingiza = "ekiwandiiko" id = "Ensobi y'okuyingiza" >
- <span class = "help-inline" > Nsaba otereeze ensobi </span>
- </div> nga bwe kiri
- </div> nga bwe kiri
- <div class = "ebikwata ku kibinja ekifuga" >
- <label class = "control-label" for = "okuyingizaAmawulire" > Okuyingiza n'amawulire </label>
- <div class = "ebifuga" >
- < ekika ky'okuyingiza = "ekiwandiiko" id = "Ebikwata ku biyingizibwa" >
- <span class = "help-inline" > Erinnya ly'omukozesa lyatwalibwa dda </span>
- </div> nga bwe kiri
- </div> nga bwe kiri
- <div class = "obuwanguzi bw'ekibiina ekifuga" >
- <label class = "control-label" for = "OkuyingizaObuwanguzi" > Okuyingiza n'obuwanguzi </label>
- <div class = "ebifuga" >
- < ekika ky'okuyingiza = "ekiwandiiko" id = "Obuwanguzi bw'okuyingiza" >
- <span class = "obuyambi-mu layini" > Woohoo! </span>
- </div> nga bwe kiri
- </div> nga bwe kiri
Okwongerako kiraasi ku <img>
elementi okusobola okwanguyirwa okukola sitayiro y’ebifaananyi mu pulojekiti yonna.
- <img src = "..." ekibiina = "img-ezingiddwako" >
- <img src = "..." ekibiina = "emg-enkulungo" >
- <img src = "..." ekibiina = "img-polaroid" >
Emitwe waggulu! .img-rounded
era .img-circle
tezikola mu IE7-8 olw’obutaba na border-radius
buwagizi.
Ebifaananyi 140 mu ngeri ya sprite, bifunibwa mu langi enzirugavu enzirugavu (esookera ddala) n’enjeru, ebiweereddwa Glyphicons .
Glyphicons Halflings mu budde obutuufu tezifunibwa ku bwereere, naye enteekateeka wakati wa Bootstrap n’abatonzi ba Glyphicons esobozesezza kino awatali kusasula ggwe ng’abakugu. Nga okwebaza, tukusaba okussaamu enkolagana ey’okwesalirawo okudda ku Glyphicons buli lwe kiba nga kikola.
Ebifaananyi byonna byetaaga <i>
tag erimu kiraasi ey’enjawulo, nga esookera ddala icon-
. Okusobola okukozesa, teeka koodi eno wammanga kumpi wonna:
- <i class = "okunoonya-akabonero" </i>
Waliwo n’emisono egiriwo ku bifaananyi ebikyusiddwa (ebyeru), ebikoleddwa nga byetegefu nga biriko kiraasi emu ey’enjawulo. Tujja kussa mu nkola mu ngeri ey’enjawulo kiraasi eno ku hover ne active states ku nav ne dropdown links.
- <i class = "akabonero-okunoonya ekifaananyi-enjeru" ></i>
Emitwe waggulu!Bw’oba okozesa ku mabbali g’ennyiriri z’ebiwandiiko, nga mu buttons oba nav links, kakasa nti oleka ebanga oluvannyuma lwa <i>
tag okusobola okuteeka ebanga obulungi.
Zikozese mu buttons, ebibinja bya buttons ku toolbar, navigation, oba prepended form inputs.
- <div class = "btn-ebbaala y'ebikozesebwa" >
- <div ekibiina = "btn-ekibinja" >
- <a class = "btn" href = "#" ><i class = "akabonero-okulaga-ku kkono" ></i></a>
- <a class = "btn" href = "#" ><i class = "akabonero-okulaga-makkati" ></i></a>
- <a class = "btn" href = "#" ><i class = "akabonero-okukwataganya-ku ddyo" ></i></a>
- <a class = "btn" href = "#" ><i class = "akabonero-okulaga-okulaga obutuufu" ></i></a>
- </div> nga bwe kiri
- </div> nga bwe kiri
- <div ekibiina = "btn-ekibinja" >
- <a class = "btn btn-primary" href = "#" ><i class = "akabonero-omukozesa akabonero-enjeru" ></i> Omukozesa </a>
- <a class = "btn btn-okusooka okugwa-okukyusa" data-okukyusa = "okugwa" href = "#" ><span kiraasi = "caret" ></span></a>
- <ul class = "menu-egwa wansi" >
- <li><a href = "#" ><i class = "akabonero-ekkalaamu" ></i> Okulongoosa </a></li>
- <li><a href = "#" ><i class = "akabonero-kasasiro" ></i> Ssaako </a></li>
- <li><a href = "#" ><i class = "enkulungo-ey'okuwera-akabonero" ></i> Okuwera </a></li>
- <li kiraasi = "omugabanya" </li>
- <li><a href = "#" ><i kiraasi = "nze" ></i> Kola omuddukanya </a></li>
- </ul>
- </div> nga bwe kiri
- <a class = "btn btn-large" href = "#" ><i kiraasi = "ekifaananyi-emmunyeenye" ></i> Emmunyeenye </a>
- <a class = "btn btn-small" href = "#" ><i kiraasi = "ekifaananyi-emmunyeenye" ></i> Emmunyeenye </a>
- <a class = "btn btn-mini" href = "#" ><i kiraasi = "ekifaananyi-emmunyeenye" ></i> Emmunyeenye </a>
- <ul ekibiina = "nav nav-olukalala" >
- <li class = "active" ><a href = "#" ><i class = "akabonero-akafaananyi-akabonero-akazungu" </i> Awaka </a></li>
- <li><a href = "#" ><i class = "ekitabo-ekifaananyi" </i> Etterekero ly'ebitabo </a></li>
- <li><a href = "#" ><i class = "akabonero-ekkalaamu" ></i> Ebikozesebwa </a></li>
- <li><a href = "#" ><i kiraasi = "nze" ></i> Ebintu ebitali bimu </a> </li>
- </ul>
- <div class = "ekibinja-ekifuga" >
- <label class = "control-label" for = "Ekifaananyi ky'okuyingiza" > Endagiriro ya email </label>
- <div class = "ebifuga" >
- <div class = "okuyingiza-okusooka" >
- <span class = "okugattako" ><i class = "akabonero-envulopu" ></i></span>
- < ekibiina ky'okuyingiza = "span2" id = "Icon y'okuyingiza" ekika = "ekiwandiiko" >
- </div> nga bwe kiri
- </div> nga bwe kiri
- </div> nga bwe kiri