remove content but keep background css code example Example 1: css erase text .hidden { font-size: 0; } Example 2: hiding text css display: none;