Created
February 5, 2024 12:51
-
-
Save RomanMaksudov/b281299ef9d515158b6ab133e090266d to your computer and use it in GitHub Desktop.
Display: inline-block
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
<div class="red"></div> | |
<div class="yellow"></div> | |
<div class="green"></div> |
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
div { | |
display: inline-block; | |
width: 100px; | |
height: 100px; | |
} | |
.red { | |
background-color: red; | |
} | |
.yellow { | |
background-color: yellow; | |
} | |
.green { | |
background-color: green; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment