Recap of Web Engineering...
Well, one of my hobbies is to write HTML and CSS. So I thought to type some code and share that in this blog post.
so here you go..
CODE:
"ForEnjoyment.html" file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="styleSheet.css">
<title>Just for Fun</title>
</head>
<body>
<div class="a">
<div class="e">
<div class="f">
</div> <div class="a">
<div class="b">
<div class="c">
<div class="d">
</div>
</div>
</div><div class="b">
<div class="c">
<div class="d">
</div>
</div>
</div>
</div>
<div class="b">
<div class="c">
<div class="d">
</div>
</div>
</div><div class="b">
<div class="c">
<div class="d">
</div>
</div>
</div>
</div>
<div class="e">
<div class="f">
</div> <div class="b">
<div class="c">
<div class="d">
</div>
</div>
</div><div class="b">
<div class="c">
<div class="d">
</div>
</div>
</div>
</div>
<div class="e">
<div class="f">
</div> <div class="a">
<div class="b">
<div class="c">
<div class="d">
</div>
</div>
</div><div class="b">
<div class="c">
<div class="d">
</div>
</div>
</div>
</div>
<div class="e">
<div class="f">
</div> <div class="b">
<div class="c">
<div class="d">
</div>
</div>
</div>
</div>
<div class="e">
<div class="f">
</div> <div class="a">
<div class="b">
<div class="c">
<div class="d">
</div>
</div>
</div>
</div><div class="a">
<div class="b">
<div class="c">
<div class="d">
</div>
</div>
</div>
</div></div>
<div class="e">
<div class="f">
</div> <div class="a">
<div class="b">
<div class="c">
<div class="d">
</div>
</div></div>
</div></div>
</div></div>
<div class="e">
<div class="f">
</div>
</div>
</body>
</html>
styleSheet.css file code:
body{ background-image: linear-gradient(to right, yellow,red, yellow); } .a{ border: 10px solid black; box-shadow: 2px 3px 5px gray; border-radius: 25% 50% 25%; background-image: linear-gradient(to right, black , blue, gold); } .b{ border:8px solid red; padding:20px; margin:40px; border-radius: 25% 50%; box-shadow: 2px 3px 5px gray; background-image: linear-gradient(to right, black , pink, yellow); } .c{ border:10px solid blue; padding: 10px; box-shadow: 5px 5px 5px gray; border-radius: 50% 25%; background-color: cornflowerblue; } .d{ border:9px solid olivedrab; padding: 40px; border-top-right-radius: 50%; box-shadow: 3px 3px 5px gray; background-color: gainsboro; } .e{ border: 10px solid midnightblue; padding: 30px; margin: 20px; box-shadow: 2px 3px 5px gray; border-radius: 50% 25% 50%; background-color: yellowgreen; } .f{ border:9px solid greenyellow; border-radius: 10% 30% 40% 50%; padding:60px; margin: 20px; box-shadow: 2px 3px 5px gray; background-color: mediumseagreen; }
OUTPUT:
Happy coding :)
Comments
Post a Comment