wtf

In this example below you will see how to do a wtf with some HTML / CSS and Javascript

Thumbnail
This awesome code was written by isaychris, you can see more from this user in the personal repository.
You can find the original code on Codepen.io
Copyright isaychris ©
  • HTML
  • CSS
<!DOCTYPE html>
<html lang="en" >

<head>
  <meta charset="UTF-8">
  <title>wtf</title>
  
  
  
      <link rel="stylesheet" href="css/style.css">

  
</head>

<body>

  <mark class="green">hello world</mark>
<mark class="red">hello world</mark>
<mark class="blue">hello world</mark>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/isaychris/wtf-dZabEK */
mark {
  padding: 1px 5px 1px 5px;
  border-radius: 5px;
  border: 1px solid transparent;
}

mark.green {
  background-color: #dbf0e0;
  color: #155724;
  border-color: #c3e6cb;
}
mark.blue {
  background-color: #e6f2ff;
  color: #004085;
  border-color: #b8daff;
}
mark.red {
  background-color:  #fbe9eb;
  color: #721c24;
  border-color: #f5c6cb;
}

Comments