Created
June 17, 2019 05:06
-
-
Save tkssharma/97f66f559d949f726cf9dcc3afeedf2e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title></title> | |
<style> | |
#geeks1{ | |
height: 100px; | |
width: 200px; | |
background: teal; | |
display: block; | |
} | |
#geeks2{ | |
height: 100px; | |
width: 200px; | |
background: cyan; | |
display: block; | |
} | |
#geeks3{ | |
height: 100px; | |
width: 200px; | |
background: green; | |
display: block; | |
} | |
.gfg { | |
margin-left:20px; | |
font-size:42px; | |
font-weight:bold; | |
color:#009900; | |
} | |
.geeks { | |
font-size:25px; | |
margin-left:30px; | |
} | |
.main { | |
margin:50px; | |
text-align:center; | |
} | |
</style> | |
</head> | |
<body> | |
<div class = "gfg">geeks</div> | |
<div class = "geeks">display: block; property</div> | |
<div class = "main"> | |
<div id="geeks1">Block 1 </div> | |
<div id="geeks2">Block 2</div> | |
<div id="geeks3">Block 3</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment