CSS Paper Effect | Css Paper Effect Background
Learners, who doesn’t want that there assignments get submit without writing any single line on paper.
Or, I would like to make you clear about this fact that writing on paper is always deliver an excellent joy 😊. So most of the tech alcoholic people expecting the feeling of writing on paper without writing on paper, isn’t it weird but yeah learners developers like you are available to help them to grab the unexpected feelings.
Welcome to our 🎊 today’s blog with code with random. In this blog, we gonna learn how we can design css paper effect as per preview image.
Although Here by our complete project we will have a assessment ruled paper with some default text. You can skip this project and can write your owns.
Without any further ado, let’s get it into.
In this section here we have a div with class paper with div with class name lines.
Within lines we have div class text in this we will have some default text
Then we have 3 vacant div with class hole, hole-middle then hole-lower.
Go through the below code 👇 and run in your IDE or where you used to design just HTML without CSS styling.
<div class="text" contenteditable spellcheck="false">
You can edit this text! <br /><br />
Cupcake ipsum dolor sit amet liquorice fruitcake. Candy canes jelly beans sweet roll cupcake lollipop. Powder carrot cake toffee brownie. Marshmallow sweet roll donut. Chocolate cake apple pie candy canes tiramisu dragée wafer. Croissant cookie lemon drops tiramisu jelly-o donut. Sweet gummi bears ice cream.</div>
<div class="holes hole-top"></div>
<div class="holes hole-middle"></div>
<div class="holes hole-bottom"></div>
In the CSS section, we will design our paper, lines and holes class div.
In the paper part we will designto turn into a rectangle shape with relatable margin.
By selector paper:: before we will add a red left side border.
By line class div we will ruled the paper with fixed margin between lines.
At last we have holes by designing them we will put them into respective deference of gap.
The Below code👇 will analyze you more. So just add in your HTML half complete file and wait to watch some magic.
margin: -275px -225px;
box-shadow: 0px 0px 5px 0px #888;
height: calc(100% - 40px);
background-image: repeating-linear-gradient(white 0px, white 24px, steelblue 25px);
font-family: 'Indie Flower';
box-shadow: inset 0px 0px 2px 0px #888;
If you want a live preview of your project that you have designed till now 😀. Have look below👇
By this blog… We have learned how we can design Paper effect in CSS.
Now I’m looking for your reviews.
So, How was the blog 😁, Learners!
If you want a more crisp blog like this then please check our Blogs sites CodewithRandom. keep tuned with us because every day you will learn something new here.😊
I hope that I’m able to make you understand this topic and you have learned something new from this blog. If you faced any difficulty feel free to drop a comment down your problems and if you liked it, please show your love in the comment section. This fills blogger hearts with enthusiasm for writing more and new blogs.
You can follow me on Instagram
Written by @Ankit kumar