So suppose I have the following code:
td.topnav_link {
padding: 5px 5px 5px 5px;
background-color: #5babd7;
border: 1px solid #578baf;
cursor: default;
}
@media screen and (max-width: 500px) {
#id_topnav_link_menu.topnav_link {
display: block;
}
#id_topnav_link_about.topnav_link {
display: hidden;
}
#id_topnav_link_contact.topnav_link {
display: hidden;
}
}
and
<td class="topnav_link" id="id_topnav_link_contact">
<a href="/contact/">contact</a>
</td>
should the "about" and "contact" not become hidden when I resize the browser down? (It does not for me when testing in a variety of browsers)
(Note: Yes, I realize I am using a td where I should not, but I am slowly converting an old layout of mine to be more CSS and more mobile)
display: noneon table cells, but instead ofblockit should betable-cell.