I need to hide some element, e.g. an image, only on mobile. How can I achive this with semantic-ui?
Is there anything like "hide-xs" in angular material or "hidden-xs" in bootstrap?
I read through the documentation and couldn´t find anything similar. All I found were some options for a grid, but I don´t want to use a grid, just to make an element invisible on certain devices...
<div class="ui grid">
<div class="two column mobile only row">
<div class="column">
<div class="ui segment">
Mobile only
</div>
</div>
</div>
</div>
Also I found some solution here on SO, where someone suggested to write some additional CSS. Like this:
/* Mobile */
@media only screen and (max-width: 767px) {
[class*="mobile hidden"],
[class*="tablet only"]:not(.mobile),
[class*="computer only"]:not(.mobile),
[class*="large monitor only"]:not(.mobile),
[class*="widescreen monitor only"]:not(.mobile),
[class*="or lower hidden"] {
display: none !important;
}
}
Is that really the way to go? Thanks for your ideas.