Bikɔs ɔf di bɔku bɔku yus fɔ tebul dɛn akɔdin to tɔd-pati widget dɛn lɛk kalenda ɛn de pikka dɛn, wi dɔn disayn wi tebul dɛn fɔ bi opt-in . Jɔs ad di bays klas .tableto ɛni wan <table>, dɔn ɛkstɛnd wit kɔstɔm stayl dɛn ɔ wi difrɛn inklud modifya klas dɛn.
Yuz di mɔs besik tebul mak, na ya aw .table-based tebul dɛn de luk na Bootstrap. Ɔl di tebul stayl dɛn gɛt inhɛrit insay Bootstrap 4 , we min se ɛni tebul we dɛn dɔn nɛst go stayl di sem we lɛk di mama ɔ papa.
Ad .table-borderedfɔ bɔda dɛn na ɔl di say dɛn na di tebul ɛn di sɛl dɛn.
# Di wan dɛn we de
Fɔs
Las
Sɔlv
1. Di wan dɛn we de
Mak
Ɔto bin de
@mdo na @mdo
2. Di wan dɛn we de
Jekɔb
Tɔntɔn
@bɔmp
3. Di wan dɛn we de
Larry di Bɔd
@twita na di twitter
<tableclass="table table-bordered"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
# Di wan dɛn we de
Fɔs
Las
Sɔlv
1. Di wan dɛn we de
Mak
Ɔto bin de
@mdo na @mdo
2. Di wan dɛn we de
Jekɔb
Tɔntɔn
@bɔmp
3. Di wan dɛn we de
Larry di Bɔd
@twita na di twitter
<tableclass="table table-bordered table-dark"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
Tebul we nɔ gɛt bɔda
Ad .table-borderlessfɔ wan tebul we nɔ gɛt bɔda.
# Di wan dɛn we de
Fɔs
Las
Sɔlv
1. Di wan dɛn we de
Mak
Ɔto bin de
@mdo na @mdo
2. Di wan dɛn we de
Jekɔb
Tɔntɔn
@bɔmp
3. Di wan dɛn we de
Larry di Bɔd
@twita na di twitter
<tableclass="table table-borderless"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
.table-borderlessyu kin yuz am bak pan tebul dɛn we dak.
# Di wan dɛn we de
Fɔs
Las
Sɔlv
1. Di wan dɛn we de
Mak
Ɔto bin de
@mdo na @mdo
2. Di wan dɛn we de
Jekɔb
Tɔntɔn
@bɔmp
3. Di wan dɛn we de
Larry di Bɔd
@twita na di twitter
<tableclass="table table-borderless table-dark"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
Row dɛn we dɛn kin hov
Add .table-hoverfɔ ɛnabul wan hova stet pan tebul row dɛn insay wan <tbody>.
# Di wan dɛn we de
Fɔs
Las
Sɔlv
1. Di wan dɛn we de
Mak
Ɔto bin de
@mdo na @mdo
2. Di wan dɛn we de
Jekɔb
Tɔntɔn
@bɔmp
3. Di wan dɛn we de
Larry di Bɔd
@twita na di twitter
<tableclass="table table-hover"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
# Di wan dɛn we de
Fɔs
Las
Sɔlv
1. Di wan dɛn we de
Mak
Ɔto bin de
@mdo na @mdo
2. Di wan dɛn we de
Jekɔb
Tɔntɔn
@bɔmp
3. Di wan dɛn we de
Larry di Bɔd
@twita na di twitter
<tableclass="table table-hover table-dark"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
Smɔl tebul
Ad .table-smfɔ mek tebul dɛn kɔmpakt mɔ bay we yu kɔt sɛl pad insay af.
# Di wan dɛn we de
Fɔs
Las
Sɔlv
1. Di wan dɛn we de
Mak
Ɔto bin de
@mdo na @mdo
2. Di wan dɛn we de
Jekɔb
Tɔntɔn
@bɔmp
3. Di wan dɛn we de
Larry di Bɔd
@twita na di twitter
<tableclass="table table-sm"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
# Di wan dɛn we de
Fɔs
Las
Sɔlv
1. Di wan dɛn we de
Mak
Ɔto bin de
@mdo na @mdo
2. Di wan dɛn we de
Jekɔb
Tɔntɔn
@bɔmp
3. Di wan dɛn we de
Larry di Bɔd
@twita na di twitter
<tableclass="table table-sm table-dark"><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><tdcolspan="2">Larry the Bird</td><td>@twitter</td></tr></tbody></table>
Klas dɛn we de tɔk bɔt di kɔntɛks
Yuz kɔntɛkstual klas fɔ kala tebul rɔw ɔ wan wan sɛl dɛn.
Klas
Di edlayn
Di edlayn
Wok
Sɛl
Sɛl
Balans
Sɛl
Sɛl
Fɔs
Sɛl
Sɛl
Sɛkɔndari
Sɛl
Sɛl
Go bifo
Sɛl
Sɛl
Denja
Sɛl
Sɛl
Wɔnin
Sɛl
Sɛl
Info
Sɛl
Sɛl
Layt
Sɛl
Sɛl
Dak
Sɛl
Sɛl
<!-- On rows --><trclass="table-active">...</tr><trclass="table-primary">...</tr><trclass="table-secondary">...</tr><trclass="table-success">...</tr><trclass="table-danger">...</tr><trclass="table-warning">...</tr><trclass="table-info">...</tr><trclass="table-light">...</tr><trclass="table-dark">...</tr><!-- On cells (`td` or `th`) --><tr><tdclass="table-active">...</td><tdclass="table-primary">...</td><tdclass="table-secondary">...</td><tdclass="table-success">...</td><tdclass="table-danger">...</td><tdclass="table-warning">...</td><tdclass="table-info">...</td><tdclass="table-light">...</td><tdclass="table-dark">...</td></tr>
Rigyul tebul bakgrɔn vayriɔnt dɛn nɔ de wit di dak tebul, bɔt, yu kin yuz tɛks ɔ bakgrɔn yutiliti fɔ ajɔst di sem kayn stayl dɛn.
# Di wan dɛn we de
Di edlayn
Di edlayn
1. Di wan dɛn we de
Sɛl
Sɛl
2. Di wan dɛn we de
Sɛl
Sɛl
3. Di wan dɛn we de
Sɛl
Sɛl
4. Di wan dɛn we de
Sɛl
Sɛl
5. Di wan dɛn we de
Sɛl
Sɛl
6. Di wan dɛn we de
Sɛl
Sɛl
7. 7. Di wan dɛn we de wok
Sɛl
Sɛl
8. Di wan dɛn we de
Sɛl
Sɛl
9. Di wan dɛn we de
Sɛl
Sɛl
<!-- On rows --><trclass="bg-primary">...</tr><trclass="bg-success">...</tr><trclass="bg-warning">...</tr><trclass="bg-danger">...</tr><trclass="bg-info">...</tr><!-- On cells (`td` or `th`) --><tr><tdclass="bg-primary">...</td><tdclass="bg-success">...</td><tdclass="bg-warning">...</td><tdclass="bg-danger">...</td><tdclass="bg-info">...</td></tr>
Fɔ gi minin to ɛtɛknɔlɔji dɛn we de ɛp
Yuz kala fɔ ad minin de jɔs gi wan vijual indikashɔn, we dɛn nɔ go gi to di wan dɛn we de yuz ɛtɛknɔlɔji dɛn we de ɛp – lɛk skrin rida dɛn. Mek shɔ se di infɔmeshɔn we dɛn sho wit di kɔlɔ de sho klia wan frɔm di tin we de insay insɛf (ɛgz. di tɛks we yu de si), ɔ dɛn put am insay ɔda we dɛn, lɛk ɔda tɛks we dɛn ayd wit di .sr-onlyklas.
Krio rispɔnsiv tebul dɛn bay we yu rap ɛni wan .tablewit .table-responsive{-sm|-md|-lg|-xl}, mek di tebul skrol ɔrizɔntal wan na ɛni max-widthbrekpɔynt we go rich (bɔt nɔ inklud) 576px, 768px, 992px, ɛn 1120px, rispɛktful wan.
Notis se bikɔs brawza dɛn nɔ de sɔpɔt
rɛnj kɔntɛks kwɛstyɔn dɛn naw , wi de wok rawnd di limiteshɔn dɛn fɔ
min-ɛn max-prɛfiks ɛn viupɔt dɛn wit frakshɔn wid (we kin apin ɔnda sɔm kɔndishɔn dɛn na ay-dpi divays dɛn, fɔ ɛgzampul) bay we wi de yuz valyu dɛn wit ay prɛsishɔn fɔ dɛn kɔmpiashɔn dɛn ya .
Kapshɔn dɛn
A <caption>de wok lɛk ed fɔ tebul. I de ɛp pipul dɛn we gɛt skrin rida fɔ fɛn tebul ɛn ɔndastand wetin i de tɔk bɔt ɛn disayd if dɛn want fɔ rid am.
Lista fɔ di wan dɛn we de yuz am
# Di wan dɛn we de
Fɔs
Las
Sɔlv
1. Di wan dɛn we de
Mak
Ɔto bin de
@mdo na @mdo
2. Di wan dɛn we de
Jekɔb
Tɔntɔn
@bɔmp
3. Di wan dɛn we de
Lari bin de tɔk
di Bɔd
@twita na di twitter
<tableclass="table"><caption>List of users</caption><thead><tr><thscope="col">#</th><thscope="col">First</th><thscope="col">Last</th><thscope="col">Handle</th></tr></thead><tbody><tr><thscope="row">1</th><td>Mark</td><td>Otto</td><td>@mdo</td></tr><tr><thscope="row">2</th><td>Jacob</td><td>Thornton</td><td>@fat</td></tr><tr><thscope="row">3</th><td>Larry</td><td>the Bird</td><td>@twitter</td></tr></tbody></table>
Tebul dɛn we de ansa
Tebul dɛn we de ansa kin mek dɛn ebul fɔ skrol tebul dɛn ɔrizɔntal wan wit izi wan. Mek ɛni tebul we de ansa akɔdin to ɔl di viupɔt dɛn bay we yu rap wan .tablewit .table-responsive. Ɔ, pik wan maksimal brekpoint wit we yu go gɛt tebul we de ansa to bay we yu yuz .table-responsive{-sm|-md|-lg|-xl}.
Vɛtikal klipin/trɔnkɛshɔn
Tebul dɛn we de ansa kin yuz overflow-y: hidden, we kin klip ɛnitin we de insay di tebul we de dɔŋ ɔ ɔp. Na mɔtalman, dis kin klip ɔf drɔpdɔwn mɛnyu dɛn ɛn ɔda tɔd-pati widget dɛn.
Ɔltɛm we de ansa
Akɔs ɛvri brekpoint, yuz .table-responsivefɔ ɔrizɔntal skrol tebul dɛn.
Yuz .table-responsive{-sm|-md|-lg|-xl}as nid de fɔ mek tebul dɛn we de ansa te to wan patikyula brekpoint. Frɔm da brek-point de ɛn ɔp, di tebul go biev nɔmal wan ɛn i nɔ go skrol ɔrizɔntal wan.
Dɛn tebul dɛn ya kin tan lɛk se dɛn dɔn brok te dɛn stayl dɛn we de ansa aplay na sɔm patikyula viupɔt wit dɛn.