Ukubonakala
Lawula imbonakalo, ngaphandle kokuguqula umboniso, wezinto ezinoncedo olubonakalayo.
Seta i visibility
-elementi kunye nezixhobo zethu zokubonakala. Ezi aziliguquli display
ixabiso kwaphela kwaye ziluncedo ekufihleni umxholo kubasebenzisi abaninzi, kodwa ziwagcinele abafundi besikrini.
Faka isicelo .visible
okanye .invisible
njengoko kuyimfuneko.
<div class="visible">...</div>
<div class="invisible">...</div>
// Class
.visible {
visibility: visible;
}
.invisible {
visibility: hidden;
}
// Usage as a mixin
.element {
@include invisible(visible);
}
.element {
@include invisible(hidden);
}