How can I have an opaque text block background, like say this one http://www.cucinadesign.co.uk/index.php?
At that site the three blocks in the middle all have text with an opaque background. This makes the text stand out.
Any help is appreciated
<div>
<img alt="picture" src="/images/your-image.jpg">
<h3 class="caption_h3">
<a href="#">BIG NAME ON IT</a></h3>
</div>
.caption_h3 {
background: none repeat scroll 0 0 rgba(84, 83, 78, 0.77);
color: #FFFFFF;
display: block;
float: left;
font-family: Verdana,Geneva,Arial,Helvetica,sans-serif;
font-size: 1.3em;
font-weight: normal;
height: 60px;
line-height: 1.5em;
margin-top: -70px;
max-height: 60px;
opacity: 1;
padding-left: 5px;
position: absolute;
text-align: left;
text-rendering: optimizelegibility;
transition: background-color 0.4s ease-in 0s;
width: 309px;
z-index: 100;
}
.gkNspPM-TitleOverlay >figure >figcaption {
background: rgba(0, 0, 0, 0.8);
width: 100%
}
Hi Cyberek thank you. You made my day!Cyberek wrote:Quick fix:
edit /templates/gk_rockwall/css/override.css
and add at its end:
- Code: Select all
.gkNspPM-TitleOverlay >figure >figcaption {
background: rgba(0, 0, 0, 0.8);
width: 100%
}
(width 100% is just my taste and You can delete it).
Just remember to enable use of override.css in theme advanced settings.