Created
February 24, 2020 17:08
-
-
Save MAXHEADR0OM/570510f38dd7bab5077deb5b4c2be272 to your computer and use it in GitHub Desktop.
Simple Flags on Images
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
.featured-container { | |
position: relative; | |
} | |
/* Top Left Text */ | |
.featured-text-block { | |
position: absolute; | |
top: 10px; | |
left: 0px; | |
background-color: #357C2B; | |
color: #fff; | |
padding-left: 10px; | |
padding-right: 10px; | |
padding-top:5px; | |
} |
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="featured-container"> | |
<img alt="1023e" src="/images/image.jpg" style="width:100%;" /> | |
<div class="featured-text-block"> | |
<h4>Special</h4> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment