Hi,
You are over-riding some of the modal's rules due to its position in the html and are applying a width to it via he following rule:
Code:
.news-item div {
float: right;
width: 355px;
}
You can over-ride those styles with an important declaration like this.
Code:
.reveal-modal-bg {
background: rgba(0, 0, 0, 0.45);
display: none;
left: 0;
position: fixed;
right: 0;
top: 0;
bottom:0;
width: auto !important;
z-index: 40;
}
I also set the dimensions using top, bottom right and left at the same time so know widths or height are needed.
The modal background could actually be outside the current html anyway on its own because it is a fixed positioned element and always relates to the viewport (unless of course the script requires it to be where it is -which I didn't check.
Bookmarks