Unverified Commit ddfbee22 authored by Guilhem Saurel's avatar Guilhem Saurel Committed by GitHub
Browse files

Merge pull request #2 from nim65s/master

Center images in carousel.
parents 07708943 2eafe67a
......@@ -14,7 +14,7 @@
{% endif %}
<img width="90%" max-height="500" src="assets/showcase/{{ project.image }}"
alt="{{ project.title }}"
title="{{ project.title }}" style="float: center"/>
title="{{ project.title }}" />
</a>
{% if project.description %}
<p class="flex-caption">{{ project.description }}</p>
......
......@@ -29,6 +29,7 @@
width: 100%;
max-width: 500px;
display: block;
margin: auto;
-webkit-border-radius: 2px;
-moz-border-radius: 2px;
......@@ -78,15 +79,15 @@ html[xmlns] .slides { display: block; }
/* Captions */
.flex-caption {
position: absolute;
bottom: 0;
left: 0;
margin: 0;
margin: auto;
padding: 2%;
color: white;
background-color: rgba(0,0,0,0.8);
text-align: left;
text-align: center;
font-size: 16px;
z-index:1;
width: fit-content;
width: -moz-fit-content;
width: -webkit-fit-content;
}
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment