Remove a div / text using CSS

To remove a div or some text, I had used the display:none ;property.

Another option is using the visibility: hidden;

visibility: hidden will hide the element, but it will still take up space in the layout.

display: none removes the element completely from the document and will not take up any space, even though the HTML for it is still in the source code.

[sourcecode language=”css”]

/* The element will not be displayed at all */