GithubHelp home page GithubHelp logo

ex-06-book-cover-design's Introduction

Ex-06-Book-Cover-Design

Aim:

Design the following book cover page using HTML and CSS

PROCEDURE :

STEP 1 : HTML Structure

Ensure proper HTML structure with , , and tags.

STEP 2 : Container Styling

Style .bookpage with fixed dimensions, centered margins, and a background image.

STEP 4 : Book Title

Center and style book title with padding and flexbox.

STEP 5 : Author Section

Style author text (author) with appropriate font size and indentation. Add a bottom orange horizontal line (bottomhr) below author information.

STEP 6 : Image Styling

Style author image (img) with fixed width, height, and margin.

STEP 7 : End the HTML structure

Run the code.

code:

<!DOCTYPE html>
<html lang="en">
   <head>
       <title>Book Coverpage</title>
       <style>
       h1{
          color:white;
       }
        .bookpage{
            width: 400px;
            height: 650px;
            
            margin-left: auto;
            margin-right: auto ;
            padding: 20px;
            background-image: url("books2.pngr.jpg");
            background-position: center;
            background-color: black;
            background-repeat: no-repeat;
        }
        .toptext{
            color:white;
            padding-left: 5px;
            font-size: 14px;
            font-family: Arial, Helvetica, sans-serif;
            
        }
        .tophr{
            color: orange;
             width: 180px;
        }
        hr{
            color: orange;
           
        }
        .booktitle{
            font-family: Arial, Helvetica, sans-serif;
            padding: 10px 10px 0px 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 10px;
            margin-left: 10px;
            font-size: 20px;
            line-height:normal;
        }
        .author{
            color:white;
            display:inline;
            position:relative;
            font-family: Arial, Helvetica, sans-serif;
            display: inline;
            font-size: 24px;
            line-height: 5px;
             
            
        }
        .sub-text {
            color:white;
            font-family: Arial, Helvetica, sans-serif;
            display: flex;
            line-height: 5px;

           
           
 margin-right: 10px;
 margin-left: 10px;

 font-size: 14px;
 }
 
.footer {
   color:orange;
   padding-top:180px;
}
.image {
   color:white;
            font-family: Arial, Helvetica, sans-serif;
   font-size: 22px;
   margin-right: px;
}
.bottomhr { 
   color: red;
             width: 400px;

}
img {
   width: 90px;
   height: 100px;
   margin-right: 20px;
   vertical-align:bottom;
}
.edition {
   color:orange;
            font-family: Arial, Helvetica, sans-serif;
   font-size: 22px;
   line-height: bottom;

}


       </style>
       </head>
           <body>
               <div class="bookpage">
                   <div class="toptext">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;7 WONDERS</div>
                   <div class="tophr"><hr></div> 
              <div class="booktitle"><h1> The Taj Mahal<sub>(1632)</sub> </h1></div>
              <h3 class="sub-text">&nbsp;&nbsp;&nbsp;Built by Shajahan</h3>
                   <h3 class="sub-text">&nbsp;&nbsp;&nbsp; In 2007 it was added as one of the 7 Wonders</h3>
                   <div class="footer">
                       <h2 class="edition">&nbsp;&nbsp;VOLUME 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  <img src="shah-jahan.png"></h2>
                     
                       <div class="bottomhr"><hr></div>
                   <div class="author"><h3>&nbsp;&nbsp;Jhon David &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Packt></h3></div>
                   
               </div>
               </div> 
               
           </body>

Output:

Alt text

Result

Hence the output was verified sucessfully.

ex-06-book-cover-design's People

Contributors

abdullahsharmila avatar karthi-govindharaju avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.