Source Code: (back to article)
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
<style>
/* Hide element on extra small devices */
@media (max-width: 576px) {
.element {
display: none;
}
}
</style>
</head>
<body>
<h1>Hi</h1>
<p>There is some text for example.</p>
<p class="element">This element will be hidden on extra small devices.</p>
<p>There is some text for example.</p>
</body>
</html>