To develop a website to display the cover page design of a book
Create a new Django project and app.
Create a static file directory and mention the changes in settings.
Make a new folder templates inside your app and create a html and map them using views and url.
Write down the code for book cover using HTML and CSS.
Add images and other contents using CSS record a screenshot of it.
<html>
<head>
<meta name="viewport"
content="width=device-width, initial-scale=1.0">
<style>
.bookpage{
width: 400px;
height: 600px;
color:white;
margin-left: auto;
margin-right: auto;
padding: 20px;
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
background-image: url(a.jpg);
background-size: cover;
}
.insight{
color:black;
}
.hrstyle{
width:100px;
}
.author{
display: inline;
position: relative;
color:black;
top:190px;
font-family:Georgia;
font-size: medium;
}
.booktitle{
font-family: 'Courier New',Courier,monospace;
font-size: larger;
text-align: center;
position: relative;
top: 30px;
color:black;
}
.id {
width:400px;
position: relative;
top:180px;
}
.pub{
font-size: medium;
position: relative;
top:155px;
left:330px;
color:black;
}
.ed{
color: black;
font-size: medium;
font-family: Verdana;
position:relative;
top:85px;
}
.subtitle{
font-family:Tahoma;
font-size: large;
position: relative;
top:40px;
color:black;
}
.mypic{
position: relative;
top: 135px;
left: 260px;
width: 100px;
height: 100px;
background-size: cover;
}
</style>
<title>Book Cover Page</title>
</head>
<body>
<div class="bookpage">
<div class="insight">
EXPERT INSIGHT
</div>
<div class="hrstyle">
<hr style="color: yellow;">
</div>
<div class="booktitle">
<h1>RESPONSIVE WEB DESIGN WITH HTML AND CSS</h1>
</div>
<div class="subtitle">
Develop future-proof responsive websies using the latest HTML5 and CSS techniques
</div>
<div class ="mypic">
<img src="P.jpg" width="130" height="145" alt="">
</div>
<div class="id">
<hr style="color: yellow;">
</div>
<div class="author">
<p><b>Mr.PRASHANTH.K</b></p>
</div>
<div class="pub">
Packt>
</div>
<div class="ed">
<b>Extended edition</b>
</div>
</body>
</html>
THE PROGRAM EXECUTED SUCCESSFULLY