Last active
October 6, 2019 11:24
-
-
Save imamuddinwp/761deab13118c49b343bc3ce676f5520 to your computer and use it in GitHub Desktop.
Hey there; it's me! Imam Uddin, imamcu07. Here is the example of HTML5 CSS3 position example. Example with National Flag of Bangladesh. For more details: https://about.me/imamcu07
This file contains 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 lang="en"> | |
<head> | |
<title>LWDAD - Learn Web Design & Development</title> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="css/normalize.min.css"> | |
<link rel="stylesheet" href="styles.css"> | |
<style> | |
body { | |
background-color: #FFFFE0; | |
color: #1E90FF; | |
} | |
.main_div { | |
background-color: #228B22; | |
width: 600px; | |
height: 365px; | |
position: relative; | |
} | |
.second_div { | |
height: 180px; | |
width: 180px; | |
background-color: #FF0000; | |
border-radius: 50%; | |
position: absolute; | |
margin: auto; | |
top:0; | |
bottom:0; | |
left: 0; | |
right:0; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="main_div"> | |
<div class="second_div"> | |
</div> | |
</div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Codepan Link