Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented example for <figcaption> tag #941

Merged
merged 5 commits into from
May 28, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions live-examples/html-examples/text-content/css/figcaption.css
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;
}
4 changes: 4 additions & 0 deletions live-examples/html-examples/text-content/figcaption.html
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>
10 changes: 10 additions & 0 deletions live-examples/html-examples/text-content/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,16 @@
"title": "HTML Demo: <dt>",
"type": "tabbed"
},
"figcaption": {
"baseTmpl": "tmpl/live-tabbed-tmpl.html",
"exampleCode":
"live-examples/html-examples/text-content/figcaption.html",
"cssExampleSrc":
"live-examples/html-examples/text-content/css/figcaption.css",
"fileName": "figcaption.html",
"title": "HTML Demo: <figcaption>",
"type": "tabbed"
},
"hr": {
"baseTmpl": "tmpl/live-tabbed-tmpl.html",
"exampleCode":
Expand Down