Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

freeCodeCamp hide content using CSS

div {  
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  -webkit-clip-path: inset(50%);
  height: 1px;
  width: 1px;
  position: absolute;
  overflow: hidden;
  white-space: nowrap;
  padding: 0;
  margin: -1px;
}
 
PREVIOUS NEXT
Tagged: #freeCodeCamp #hide #content #CSS
ADD COMMENT
Topic
Name
5+9 =