Last active
May 18, 2016 10:23
-
-
Save mamiu/aa00d0f7d5ad135e0a5ab72ab26d620d to your computer and use it in GitHub Desktop.
Image caption for an Odoo image gallery. Add an inline caption to a image in an image gallery.
This file contains hidden or 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
Website assets: | |
<style> | |
.image-caption { | |
background-color: #000; | |
opacity: 0.7; | |
position: absolute; | |
width: 600px; | |
padding: 8px 10px; | |
left: 50%; | |
margin-left: -300px; | |
bottom: 77px; | |
} | |
.image-caption p { | |
margin: 0; | |
font-size: medium; | |
color: #fff; | |
} | |
</style> | |
In the image gallery after the <img>-tag: | |
<section class="image-caption"> | |
<p>Das ist die Bildunterschrift</p> | |
</section> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You only have to edit the
width
in the<style>
-tags according to the width of your images, themargin-left
to the half of yourwidth
and thebottom
(there you have to try).