Saturday, May 16, 2020

Responsive Design Scripts

Responsive Design Design Script Tutorial

Please watch this video For more information about Responsive Design.


Responsive Design Video


HTML Codes for Responsive Design


<html>
<head>
<link rel="stylesheet" href="responsive.css">
</head>
<body>
<!---Banner--->
<div class="banner">
<header>
<a href="#" class="logo">Brand Name</a>
<div class="toggle"></div>
</header>
<img src="bg.jpg">
<div class="content">
<h2>Success by Design</h2>
<p>
The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one. It is compulsary to apear in every exam. In case of illness medical certificate should be submitted in this case the student 
may promoted according to rules. The minimum pass percentage for every subject is thirty three percent. One the result is requested 
The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one.
</p>
</div>
</div>

<!---About--->

<section class="about">
<div class="contentBx">
<h2 class="heading">About Us</h2>
<p class="text">
The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one. It is compulsary to apear in every exam. In case of illness medical certificate should be submitted in this case the student 
may promoted according to rules. The minimum pass percentage for every subject is thirty three percent. One the result is requested 
The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one.<br><br>
The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one. It is compulsary to apear in every exam. In case of illness medical certificate should be submitted in this case the student 
may promoted according to rules. The minimum pass percentage for every subject is thirty three percent. One the result is requested 
The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one.
</p>
</div>
<div class="imgBx"></div>
</section>

<!---Services--->
<section class="services">
<h2 class="heading">Our Services</h2>
<p class="text">The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one. It is compulsary to apear in every exam. In case of illness medical certificate should be submitted in this case the student 
may promoted according to rules. The minimum pass percentage for every subject is thirty three percent. One the result is requested 
The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one.</p>
<div class="container">
<div class="serviceBx">
<div>
<img src="icon1.png">
<h2>Design</h2>
</div>
</div>
<div class="serviceBx">
<div>
<img src="icon2.png">
<h2>Development</h2>
</div>
</div>
<div class="serviceBx">
<div>
<img src="icon3.png">
<h2>Branding</h2>
</div>
</div>



</div>

</section>

<!---Technology--->

<section class="technology">
<div class="contentBx">
<h2 class="heading">We use cutting edge technology</h2>
<p class="text">The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one. It is compulsary to apear in every exam. In case of illness medical certificate should be submitted in this case the student 
may promoted according to rules. The minimum pass percentage for every subject is thirty three percent. One the result is requested 
The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one.</p>
</div>
<div class="imgBx">
<img src="tech.png">
</div>
</section>

<!---Client--->

<section class="client">
<h2 class="heading">Our Client</h2>
<p class="text">The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one. It is compulsary to apear in every exam. In case of illness medical certificate should be submitted in this case the student 
may promoted according to rules. The minimum pass percentage for every subject is thirty three percent. One the result is requested 
The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one.</p>
<div class="imgBx">
<img src="brand1.png">
<img src="brand2.png">
<img src="brand3.png">
<img src="brand4.png">
</div>
</section>

<!---Testimonials--->

<section class="testimonials">
<h2 class="heading">What Our Client says</h2>
<div class="container">
<div class="contentBx">
<div>
<p>The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one. It is compulsary to apear in every exam. In case of illness medical certificate should be submitted in this case the student 
may promoted according to rules.</p><br>
<h3>Someone Famous</h3>
</div>
</div>
<div class="contentBx">
<div>
<p>The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one. It is compulsary to apear in every exam. In case of illness medical certificate should be submitted in this case the student 
may promoted according to rules.</p><br>
<h3>Someone Famous</h3>
</div>
</div>
</div>
</section>

<!---Contact--->
<section class="contact">
<h2 class="heading">Contact Us</h2>
<p class="text">The parents are requested to see the report card positively. Effective measures must be taken by the parents to make up in the 
failing subject. The report card should be kept clean. If the report card is lost, rupees fifty will be charged for the new 
one. It is compulsary to apear in every exam. In case of illness medical certificate should be submitted in this case the student 
may promoted according to rules.</p>
</section>

<section class="about">
<div class="contentBx redbg">

<div class="form">
<div class="inputBx">
<input type="text" name="" placeholder="Full Name">
</div>
<div class="inputBx">
<input type="text" name="" placeholder="Email Address">
</div>
<div class="inputBx">
<input type="text" name="" placeholder="Mobile No.">
</div>
<div class="inputBx">
<textarea placeholder="Write your message here"></textarea>
</div>
<div class="inputBx">
<input type="submit" name="" value="Send">
</div>
</div>
</div>
<div class="imgBx2"></div>
</section>

<!---Footer--->
<section class="footer">
<p class="text">Design & Developed By Moin Qureshi</p>
<ul>
<p class="text">Follow us on : </p>
<li><a href="#"><img src="facebook.png"></a></li>
<li><a href="#"><img src="twitter.png"></a></li>
<li><a href="#"><img src="linkedin.png"></a></li>
</ul>
</section>

</body>
</html>



CSS Codes for Responsive Design

*
{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: Arial;
}
.banner
{
position: relative;
width: 100%;
height: 100vh;
background: #3475ca;
display: flex;
justify-content: center;
align-items: center;
}
.banner img
{
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
object-fit: cover;
opacity: 0.25;
}
.banner .content 
{
position: relative;
max-width: 750px;
text-align: center;
}
.banner .content h2
{
color: #fff;
font-size: 60px;
}
.banner .content p
{
color: #fff;
font-size: 18px;
}
.banner header
{
position: absolute;
top: 0;
left: 0;
width: 100%;
padding: 40px 100px;
display: flex;
justify-content: space-between;
align-items: center;
z-index: 10000;
}
.banner header .logo
{
color: #fff;
text-decoration: none;
font-size: 24px;
text-transform: uppercase;
font-weight: 700;
letter-spacing: 1px;
}
.banner header .toggle
{
position: relative;
width: 36px;
height: 28px;
background: url(toggle.png);
background-size: cover;
cursor: pointer;
}
.about
{
position: relative;
width: 100%;
display: flex;
}
.about .contentBx
{
background: #162c3b;
padding: 100px;
width: 50%;
}
.heading
{
color: #fff;
font-size: 30px;
font-weight: 600;
letter-spacing: 1px;
margin-bottom: 10px;
}
.text
{
color: #fff;
font-size: 16px;
font-weight: 300;
letter-spacing: 1px;
}
.about .imgBx
{
background: url(window.jpg);
width: 50%;
background-size: cover;
background-position: center;
}
.services
{
background: #12222d;
padding: 100px;
text-align: center;
}
.services .container
{
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
margin-top: 60px;
}
.services .container .serviceBx
{
position:relative;
background: #fff;
width: 350px;
height: 400px;
display: flex;
justify-content: center;
align-items: center;
}
.services .container .serviceBx img
{
max-width: 100px;
}
.services .container .serviceBx h2
{
font-weight: 500;
font-size: 20px;
letter-spacing: 1px;
}
.technology
{
background: #3f8ffc;
width: 100%;
padding: 100px;
padding-top: 300px;
margin-top: -300px;
display: flex;
justify-content: space-between;
align-items: center;
}
.technology .contentBx
{
max-width: 800px;
}
.technology .imgBx
{
max-width: 250px;
}
.technology .imgBx img
{
max-width: 100%;
}
.client
{
background: #162c3b;
padding: 100px;
text-align: center;
}
.client .imgBx
{
display: flex;
justify-content: space-between;
align-items: center;
flex-wrap: wrap;
margin-top: 40px;
}
.client .imgBx img
{
max-width: 200px;
margin: 20px;
opacity: 0.25;
cursor: pointer;
}
.client .imgBx img:hover
{
opacity: 1;
}
.testimonials
{
position: relative;
padding: 100px;
background: #12222d;
text-align: center;
}
.testimonials .container
{
display: flex;
justify-content: space-between;
align-items: center;
margin-top: 40px;
flex-wrap: wrap;
}
.testimonials .container .contentBx
{
background: #fff;
padding: 60px 50px;
width: 550px;
display: flex;
justify-content: center;
align-items: center;
text-align: left;
}
.testimonials .container .contentBx p
{
font-style: italic;
}
.testimonials .container .contentBx h3
{
width: 100%;
text-align: end;
font-weight: 500;
color: #3f8ffc;
}
.contact
{
padding: 100px;
background: #162c3b;
text-align: center;
}
.imgBx2
{
background: url(bg2.jpg);
background-size: cover;
background-position: center;
width: 50%;
}
.redbg
{
background: url(red.jpg) !important;
background-size: cover;
background-position: center;
}
.form .inputBx
{
margin-bottom: 40px;
}
.form .inputBx input
{
width: 100%;
background: transparent;
box-shadow: none;
border: none;
outline: none;
padding: 10px 0;
font-size: 18px;
font-weight: 300;
color: #fff;
border-bottom: 2px solid #fff;
}
.form .inputBx input::placeholder
{
color: #fff;
}

.form .inputBx textarea
{
width: 100%;
background: transparent;
box-shadow: none;
border: none;
outline: none;
padding: 10px 0;
font-size: 18px;
font-weight: 300;
color: #fff;
min-height: 150px;
border-bottom: 2px solid #fff;
}
.form .inputBx textarea::placeholder
{
color: #fff;
}
.form .inputBx input[type="submit"]
{
width: 150px;
background: #fff;
color: #111;
cursor: pointer;
font-weight: 400;
}
.footer
{
background: #162c3b;
padding: 20px 100px;
display: flex;
justify-content: space-between;
align-items: center;
}
.footer ul
{
display: flex;
justify-content: center;
align-items: center;
}
.footer ul li 
{
list-style: none;
}
.footer ul li a 
{
text-decoration: none;
display: inline-block;
margin: 0 10px;
}
.footer ul li a img 
{
filter: invert(1);
max-width: 20px;
}
@media (max-width: 991px)
{
.banner
{
padding: 50px;
}
.banner header
{
padding: 20px 50px;
}
.banner .content h2
{
font-size: 36px;
}
.banner .content p 
{
color: #fff;
font-size: 16px;
}
.about 
{
flex-direction: column;
}
.about .contentBx,
.about .imgBx
{
width: 100%;
padding: 50px;
min-height: 400px;
text-align: center;
}
.services
{
padding: 50px;
}
.services .container
{
justify-content: center;
margin-top: 20px;
}
.services .container .serviceBx
{
margin: 20px;
width: 300px;
height: 350px;
}
.technology
{
padding: 50px;
padding-top: 300px;
justify-content: center;
flex-direction: column;
}
.technology .imgBx 
{
margin-top: 40px;
max-width: 250px;
}
.client 
{
padding: 50px;
}
.client .imgBx
{
justify-content: center;
}
.testimonials
{
padding: 50px;
}
.testimonials .contentBx
{
padding: 60px 40px;
max-width: 550px;
margin-bottom: 40px;
}
.testimonials .contentBx:last-child
{
margin-bottom: 0px;
}
.contact 
{
padding: 50px;
}
.footer 
{
padding: 20px 50px;
flex-direction: column-reverse;
text-align: center;
}
.footer ul 
{
margin-bottom: 20px;
}



}

No comments:

Post a Comment