Using CSS to hide page elements
As discussed previously, this method should be used only for elements that need to be hidden for layout reasons, not because of their file size. In Chapter 5, Working with Text and Navigation, we used this method to hide a menu link, something that doesn't impact on load time and wouldn't be a problem. The code we used there was very specific to those particular elements—let's look at a more robust way of doing it.