Chalkboard

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

Styles div elements to look like a chalkboard. Forked from a previous pen: http://codepen.io/DrBright/pen/qEbWLQ

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

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

  
</head>

<body>

  <div class="chalkboard">
  <p>"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
  </p>
</div>
  
  

</body>

</html>

/*Downloaded from https://www.codeseek.co/DrBright/chalkboard-gbPvKN */
body {
  background-color:white;
}

.chalkboard {
  background-color:darkgreen;
  border:10px ridge brown;
  padding-left:50px;
  padding-right:50px;
  width:500px;
  height:auto;
  color:white;
  position:absolute;
  margin:auto;
  margin-top:100px;
  left:0;right:0;
}

Comments