Things You'll Need:
- Cascading Style Sheets
- Computer
-
Step 1
Find the code for the element you wish to hide. In this case the code will be
Hello world. -
Step 2
Insert the following code between the end of the opening tag of the element, but before the closing square bracket.
style = “visibility: hidden;”
So, in our example, our div would become:Hello world
-
Step 1
Find the tag in the code of your Web page. The head tag should be toward the top of your code.
-
Step 2
Move the tag down one line. If the tag is situated on a line with other code, move it down so that it is on its own line and then move it down one more.
-
Step 3
Insert the following code on the line above the tag:
-
Step 4
Find the code for the element which you wish to hide.
-
Step 5
Insert the following code between the end of the opening tag of the element, but before the closing square bracket.
class = “invisible”
So, in our example, our div would become:Hello world











