HTML website easy way

 how to make a easy web

STYLE.CSS CODING

*

      {

           padding: 0;

           margin: 0;

           box-sizing: border-box;

      }

       body

      {

        background-image: url(background.jpg);

        background-size: cover;

        background-position: center;

        font-family: sans-serif;

       }

       .menu-bar

       {

        background: rgb(0,100,0);

        text-align: center;

        }

        .menu-bar ul

        {

           display: inline-flex;

           list-style: none;

           color: #fff;

          }

          .menu-bar ul li

          {

            width: 120px;

            margin: 15px;

            padding: 15px;

           }

           .menu-bar ul li a

           {

              text-decoration: none;

              color: #fff;

            }

            .active, .menu-bar ul li:hover

            {

                background: #2bab0d;

                border-radius: 3px;

             }

             .menu-bar .fa

             {

                margin-right: 8px;

             }

             .sub-menu-1

             {    

                 display: none;

             }

              .menu-bar ul li:hover .sub-menu-1 

              {

                  display: block;

                  position: absolute;

                  background: rgb(0,100,0);

                  margin-top: 15px;

                  margin-left: -15px;


               }

               .menu-bar ul li:hover .sub-menu-1 ul 

               {

                   display: block;

                   margin: 10px;

                 }

                 .menu-bar ul li:hover .sub-menu-1 ul li

                 {

                    width: 150px;

                    padding: 10px;

                    border-bottom: 1px dotted #fff;

                    background: transparant;

                    border-radius: 0;

                    text-align: left;

          

                  }

                  .menu-bar ul li:hover .sub-menu-1 ul li:last-child

                  {

                      border-bottom: none;

                   }

                    .menu-bar ul li:hover .sub-menu-1 ul li a:hover

                   {

                       color: #b2ff00;

                     }

                      .fa-angle-right

                     {

                          float: right;

                         }

                           .sub-menu-2

                          {

                             display: none;

                             }

                            .hover-me:hover .sub-menu-2

                               {

                                       position: absolute;

                                        display: block;

                                        margin-top: -40px;

                                        margin-left: 140px;

                                        background: rgba(0,100,0);

                                     }

                                      .pdf-box

                                      {

margin:100px 150px 100px 80px

                                      }

HTML CODING

<html>

<head>

,title>Drope-down Menu - TK Raghav</title>

<link rel="stylesheet" href="style.css">

</head>

<body>

    <div class="menu-bar">

<ul>

<li>Home</li>

<li>About Us</li>

<li>Services</li>

<li>Clients</li>

<li>Investers</li>

<li>Pricing</li>

<li>Training</li>

<li>Contact</li>

</ul>

</body>

</html>


Html website with stylecss

<a href="https://google.com" target="_blank">Book1 - Author 1</a>

<ul style="display:flex; flex-wrap:wrap; justify-content:center; align-items:center">

<ul style="display:flex; flex-wrap:wrap; justify-content:center; align-items:center; margin-right: 10px; margin-bottom: 10px">

<li style="margin-right: 10px; margin-bottom: 10px">


<embed src="file_name.pdf" width="800px" height="2100px" />

Full html website with video and pdf book

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div>
        <ul style="font-size: 40px; padding: 40px; list-style-type: none; display: flex; background: green; justify-content: center; align-items: center; margin-top: auto; margin-bottom: auto;">
            <li style="margin-right: 20px; margin-bottom: 20px"><a href="https://google.com" target="_blank">Home</a></li>
            <li style="margin-right: 20px; margin-bottom: 20px"><a href="https://youtube.com" target="_blank">About</a></li>
            <li style="margin-right: 20px; margin-bottom: 20px"><a href="https://gmail.com" target="_blank">Products</a></li>
            <li style="margin-right: 20px; margin-bottom: 20px"><a href="https://instagram.com" target="_blank">Portfolio</a></li>
            <li style="margin-right: 20px; margin-bottom: 20px"><a href="https://github.com" target="_blank">Contact Us</a></li>
        </ul>

        <center style="margin-top: 60px">
            <a style="font-size: 40px;" href="#">Book 1</a>
        </center>
    </div>

    <iframe width="1000" height="700" src="https://www.youtube.com/embed/MpMkXyBWpl8" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

</body>
</html>

Comments

Popular Posts