Witam! Piszę dla siebie stronę i mam pytanie jak w CSS przyciemnić tło po otwarciu LightBox (na zdjęciu nie jest przyciemnione tło)
CSS:
.images
{
text-align: center;
margin-left: 95px;
}
.image
{
padding: 30px;
float: left;
}
.box
{
width: 100%;
height: 100%;
display: none;
position: absolute;
left: 0;
top: 0;
z-index: 999;
}
.box a
{
display: table-cell;
vertical-align: middle;
text-align: center;
}
.box img
{
background-color: #ffffff;
padding: 15px;
}
.box:target{
display: table;
position: fixed;
}
HTML:
div class="images">
<a href="#obrazek" class="oblink"><img class="image" width="450px" height="255px" src="portfolio/1.jpg" /></a>
<div class="box" id="obrazek">
<a href="#"><img src="portfolio/1.jpg"/></a>
</div>