DWPD-1.8: Apply CSS formatting to created pages and explore it fully, also use ready made css templates.

ready made css for our website
Lab # 1
Introduction to html & CSS

8. Apply CSS formatting to created pages and explore it fully, also use ready made css templates.

Lab-1-8-Readymade-css.html

<html>
<head>
<title>The Little Sweet World</title>
<link href="https://fonts.googleapis.com/css?family=Montserrat:400,600i,700,900" rel="stylesheet">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">

<link rel="stylesheet" type="text/css" href="Lab-1-8.css">
</head>

<body>
<div class="background">
<nav class="navbar navbar-default">
<div class="container">

<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">The Little Sweet World</a>
</div>

<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="">Home</a></li>
<li><a href="">About</a></li>
<li><a href="">Contact</a></li>
</ul>
<ul class="nav navbar-nav navbar-right">
<li><a href="#"></i>Sign up</a></li>
<li><a href="#"></i>Login</a></li>

</ul>
</div>
</div>
</nav>

<div class="container">
<div class="row">
<div class="col-lg-12">
<div id="content">

<h1>The Little Sweet World</h1>
<h3>"All you need is love.</h3>
<h3>But a little chocolate now and then doesn't hurt"</h3>
<hr>
<button class="btn btn-default btn-lg"><a href="getStarted.html">Get started!</a></button>
</div>
</div>
</div>
</div>
</div>
<script
src="https://code.jquery.com/jquery-3.3.1.js"
integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>
<script type="text/javascript" src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</body>
</html>

Lab-1-8.css

html {
height: 100%;
}
* {
font-family: Montserrat;
color: white;
}
body {
font-family: Montserrat;
color: white;
background: url(https://images.unsplash.com/photo-1519306980079-d14db7cebf33?ixlib=rb-0.3.5&ixid=eyJhcHBfaWQiOjEyMDd9&s=1d430305c474be774fce97bfe31221b0&auto=format&fit=crop&w=1350&q=80);
background-size: cover;
background-position: center;
}

#content {
text-align: center;
padding-top: 25%;
text-shadow: 0px 4px 3px rgba(0,0,0,0.4),
0px 8px 13px rgba(0,0,0,0.1),
0px 18px 23px rgba(0,0,0,0.1);
}
body h1 {
font-weight: 900;
font-size: 5em;
}
body h3 {
font-weight: 600;
font-style: italic;
font-size: 2em;
}

.navbar-brand {
font-weight: 600;
}

body hr {
width: 1100px;
border: 0;
height: 3px;
background-image: linear-gradient(to right, rgba(255, 255, 255, 0),
rgba(255, 255, 255, 0.75),
rgba(255, 255, 255, 0));
}

a:hover, a:focus{
text-decoration: none;
text-decoration-color: none;
}


Ouput

ready made css, formatting css, explore, output, 1-8, practical 8, dwpd
Apply CSS formatting to created pages and explore it fully, also use ready made css templates | by Practical Server


If This code is very long to write, so inform your Sir/Mem to reduce it and write in your manual or practical file, But explore yourself.

Happy Coding 🙂

Leave a comment