Been puzzling al morning, but I can't figure this one out.
I got a pop-up working on my blog. I wanna use this to popup a bigger version of a picture, which it does.
If you scroll down to 2, you'll see that it doesn't center vertically, what you now see is just an absolute position. How can I make it center horizontally?
Would be nice if the div would also center horizontally and/or adjust to fit it contents, but that's just a bonus.
This is the css for the popup div:
.endomondo {
visibility: hidden;
background: white;
border-style: solid;
border-width: 1px;
border-color: red;
position: absolute;
top: -178px;
left: -220px;
width: 1200px;
height: 825px;
text-align: center;
}
Thanks in advance!