Created
April 1, 2024 17:06
-
-
Save madigan/23d4ccf24dcc8f8e73496872a7930353 to your computer and use it in GitHub Desktop.
Styling Example
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> | |
<head> | |
<style> | |
html, | |
body { | |
padding: 0; | |
margin: 0; | |
height: 100%; | |
} | |
.container { | |
background-color: red; | |
padding: 10px; | |
display: flex; | |
justify-content: center; | |
} | |
.square { | |
height: 100px; | |
width: 100px; | |
border: 2px solid black; | |
margin: 2px; | |
text-align: center; | |
} | |
.local-style { | |
background-color: blue; | |
height: 100px; | |
width: 100px; | |
} | |
</style> | |
<link rel="stylesheet" href="./style.css" /> | |
</head> | |
<body> | |
<div class="container"> | |
<div class="label"> | |
<div class="square imported-style">Imported</div> | |
<div class="square local-style">Local</div> | |
</div> | |
</div> | |
</body> | |
</html> |
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
.imported-style { | |
background-color: yellow; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment