style.css in Simple Mega Menu 2.0.x
.simple-mega-menu .image-wrapper {
position: relative;
}
.simple-mega-menu .image-wrapper .image-title {
position: absolute;
top: 50%;
left: 50%;
text-align: center;
padding: 1rem 2rem;
background-color: rgba(0, 0, 0, 0.6);
transform: translateX(-50%) translateY(-50%);
font-size: 2rem;
color: #fff;
}
File
modules/simple_megamenu_example/css/style.css
View source
- .simple-mega-menu .image-wrapper {
- position: relative;
- }
- .simple-mega-menu .image-wrapper .image-title {
- position: absolute;
- top: 50%;
- left: 50%;
- text-align: center;
- padding: 1rem 2rem;
- background-color: rgba(0, 0, 0, 0.6);
- transform: translateX(-50%) translateY(-50%);
- font-size: 2rem;
- color: #fff;
- }