Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented example for <figcaption> tag (#941)
* Add HTLM example for <figcapture> * include <figcaption> in meta.json * Add style for <figcaption> * mention an author name * refactor figcaption.css
- Loading branch information
1 parent
e78dd69
commit c22cf71
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
live-examples/html-examples/text-content/css/figcaption.css
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
figure { | ||
border: thin silver solid; | ||
display: flex; | ||
flex-flow: column; | ||
margin: 0; | ||
padding: 5px; | ||
} | ||
|
||
img { | ||
max-height: 220px; | ||
width: 100%; | ||
} | ||
|
||
figcaption { | ||
background: #222; | ||
color: #fff; | ||
font: italic smaller sans-serif; | ||
padding: 3px; | ||
text-align: center; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<figure> | ||
<img src="/media/examples/hamster.jpg" alt="a cute hamster" /> | ||
<figcaption>Hamster by Ricky Kharawala on Unsplash</figcaption> | ||
</figure> |
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