HTML and CSS

Notebook Paper

Nobody sets the rules but you!


People tell you the world looks a certain way. Parents tell you how to think. Schools tell you how to think. TV. Religion. And then at a certain point, if you’re lucky, you realize you can make up your own mind. Nobody sets the rules but you. You can design your own life.

HTML

<div class="notebook-container">
<div class="notebook-content-top"></div>
<div class="notebook-lines">
<div class="notebook-content">
<br/>
People tell you the world looks a certain way. Parents tell you how to think. Schools tell you how to think. TV. Religion. And then at a certain point, if you’re lucky, you realize you can make up your own mind. Nobody sets the rules but you. You can design your own life.<br/><br/>
<span class="notebook-content-author">Carrie Ann Moss</span>
</div>
</div>
<div class="notebook-content-bottom"></div>
</div>

CSS

@import url('https://fonts.googleapis.com/css2?family=Shadows+Into+Light&display=swap'); 
.notebook-container {
  position: relative;
  background-color: rgba(255, 255, 255, 0.4);
  background-image: url("paper-texture.png");
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px; 
}

.notebook-container::before {
  content: '';
  width: 1px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 60px;
  background-color: rgba(255, 0, 0, 0.4);
}

.notebook-container::after {
  content: '';
  width: 1px;
  height: 100%;
  position: absolute;
  top: 0;
  left: 63px;
  background-color: rgba(255, 0, 0, 0.4);
}

.notebook-content-top {
  padding-top: 40px;
  background-color: rgba(255, 255, 255, 0.4);
}

.notebook-content-bottom {
  padding-bottom: 40px;
  background-color: rgba(255, 255, 255, 0.4);
}

.notebook-lines {
  height: 100%;
  background-image: repeating-linear-gradient(rgba(255, 255, 255, 0.4) 0px, 
  rgba(255, 255, 255, 0.4) 25px, 
  rgba(0, 0, 0, 0.2) 26px);
}

.notebook-content {
  padding-top: 6px;
  padding-left: 90px;
  padding-right: 40px;
  line-height: 26px;
  font-family: "Shadows Into Light", cursive;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: 1px;
  word-spacing: 4px;
}

.notebook-content-author {
  display: block;
  text-align: right;
  padding-right: 60px;
}