Skip to main content

MODERN WEBSITE CREATE BY USING HTML AND CSS

hello friends....

TAKE THE FIRST STEP TO KNOWLEDGE FRIENDS BECAUSE KNOWLEDGE IS FREE.

HTML CODE
*******************

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>MODERN WEBSITE DESIGN</title>
<link rel="stylesheet" type="text/css" href="modern_2.css">
<link href="https://fonts.googleapis.com/css?family=Saira+Stencil+One&display=swap" rel="stylesheet">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>

<header>
<div class="main_header">
<div class="logo">
<img src="dnp_bg.png" width="100px" height="100px">
</div>

<nav>
<a href="#">home</a>
<a href="#">about us</a>
<a href="#">contact us</a>
</nav>

<div class="log_sig">
<a href="#">sing up</a>
<a id="login-btn" href="#">log in</a>
</div>
    </div>


        <main>
           <section class="left-section">
           <figure>
      <img src="20.png" height="600px" width="700px">
       </figure>
           </section>

           <section class="right-section">
           <h2>the way to succeed is to double your failure rate.</h2>
           <h1>ENGINEER</h1>
           <p>As engineers, we were going to be in a position to change the world – not just study it. Science is about knowing, engineering is about doing.</p>
           <button>DISCLIMER</button>
           </section> 
        </main>
</header>

</body>

</html>

---------- *** ----------

CSS CODE
***************

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: arial;
}

header{
  width: 100%;
  height: 100vh;
  background-image:url('modern_2.png');
  background-repeat: no-repeat;
  background-size: 100% 100%; 
}

.main_header{
  width: 100%;
  height: 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main_header .logo img{
  width: 150px;
  height: 130px;
  margin-left: 20px;
  margin-top: 50px;
}

.main_header nav{
  width: 450px;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.main_header nav a{
  text-decoration: none;
  color: black;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 18px;
}

.main_header .log_sig{
  width: 450px;
  display: flex;
  justify-content:space-evenly;
  align-items: center;
}

.main_header .log_sig a{
  /* border: 1px solid red; */
  padding: 10px 30px;
  text-decoration: none;
  border-radius: 50px;
  font-weight: bold;
  background-image: linear-gradient(to right, #f2cb05, #f2527d);
  color: #fff;
  opacity: 0.8;
  text-transform: capitalize;
  box-shadow: 3px 3px 10px black;
}
.main_header .log_sig #login-btn{
  padding-left: 20px;
  /* border: 1px solid red; */
  padding: 10px 30px;
  text-decoration: none;
  background-image: linear-gradient(to right, #313a87, #7833a6);
  border-radius: 50px;
}

.main_header .log_sig #login-btn:hover{
  padding-left: 20px;
  /* border: 1px solid red; */
  padding: 10px 30px;
  text-decoration: none;
  background-image: linear-gradient(to right, #f2cb05, #f2527d);
  border-radius: 50px;
}


main{
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

main .left-section{
  margin-top: -50px;
}
.right-section h2{
  font-size: 20px;
  font-weight: lighter;
  text-transform: capitalize;
  letter-spacing: 2px;
  padding-top:20px;
}

.right-section h1{
  font-size: 55px;
  letter-spacing: 10px;
  font-family: arial;
  line-height: 80px;
}

.right-section p{
  text-transform: capitalize;
  padding-right: 40px;
  line-height: 25px;
  margin-bottom: 20px;
}

button{
  padding: 15px 50px;
  font-size: 18px;
  background-image: linear-gradient(to right, #f2c12e,#ee1986);
  border: none;
  border-radius: 10px;
  color: #fff;
  letter-spacing: 2px;
  box-shadow: 2px 2px 10px black;
  cursor: pointer;
}

button:hover{
  padding: 15px 50px;
  font-size: 18px;
  background-image: linear-gradient(to right, #6a9ad9,#7405c8);
  border: none;
  border-radius: 10px;
  color: #fff;
  letter-spacing: 2px;
  box-shadow: 2px 2px 10px black;
  cursor: pointer;

}

----------***----------
OUTPUT
============

------------------------------------------------------------------------------------------------------------------------
>> IF YOU LIKE THIS BLOG, PLEASE SHARE AND SUBSCRIBE. ALSO COMMENT              FOR THIS BLOG.
>> IF YOU HAVE ANY QUESTIONS PLEASE ASK IN COMMENT.
>> IF YOU WANT TO LEARN C PROGRAM WITH OUTPUT, SO VISIT THIS BLOG
      https://dnpdeveloper.blogspot.com/
>> IF YOU WANT TO LEARN C++ PROGRAM WITH OUTPUT, SO VISIT THIS 
      BLOG
>> IF YOU WANT TO LEARN HTML WITH OUTPUT, SO VISIT THIS BLOG
>> MY INSTAGRAM ID : dnp176

Comments

Popular posts from this blog

MODERN WEBSITE CREATE BY USING HTML AND CSS

hello friends.... TAKE THE FIRST STEP TO KNOWLEDGE FRIENDS  BECAUSE KNOWLEDGE IS FREE. HTML CODE ******************* <!DOCTYPE html> <html> <head> <title>MODERN WEBSITE CREATE</title> <link rel="stylesheet" type="text/css" href="mord_site.css"> </head> <body> <header class="site-header"> <nav> <div class="logo"> <h1>DNP DEVELOPER</h1> </div> <div class="menu"> <ul> <li>Home</li> <li>About</li> <li>Contact Us</li> </ul> </div> </nav> <section> <div class="leftside"> <img src="1.png"> </div> <div class="rightside"> <h1>OUR MODERN WEBSITE</h1> <p>We Are the best website Developer Company.</p> <button>We...

DESIGN REGISTRATION FORM BY USING HTML & CSS

hello friends.... TAKE THE FIRST STEP TO KNOWLEDGE FRIENDS  BECAUSE KNOWLEDGE IS FREE. HTML CODE ******************* <!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" type="text/css" href="regis.css"> <title>REGISTRATION FORM</title> </head> <body> <h1>REGISTRATION FORM</h1> <div id="main_box"> <table align="center"> <tr><td>FIRST NAME </td><td><input type="text" name="f_name" maxlength="20"></td></tr> <tr><td>LAST NAME  </td><td><input type="text" name="l_name" maxlength="20"></td></tr> <tr><td>EMAIL ID </td><td><input type="text" name="emil"   m...