Hi all,
I made this code to scale images to fit the screensize of the browser, it works perfect for me, and i would like to integrate in the image.php file of my modificated Zenpage-default theme.
Since i have no knowledge of php, does anyone has an suggestion how to do that? Till now i managed to restyle the theme the way i like it, almost ready, but i'm stuck here.
Thanks a lot in advance!
'
html, body {
margin: 0px;
width: 100%;
height: 100%;
background-color: #000;
}
z-index: 0;
height: 99%;
}
text-align: center;
position: absolute;
width: 80%;
height: 93%;
overflow: hidden;
right: 1%;
bottom: 6%;
}
'
Well, you will have to do some work. If you don't want images to be upscaled by that css you need to render image in the real size via our custom image functions (see the documentation) to fit the acutal browser window. To find out the browser window (viewport) size you need to use JavaScript to get that info.
i WANT them to be upscaled by that css, but i dont know where to put those Div's on the image.php page without messing up the php code. I think its simple to do for you guys, corect me if i'm wrong
So, here somewhere in this code it has to happen. There is this 500,500 thing, i dont know how to remove. Sorry for asking questions in this simple way, i really dont know a thing about php. :-S
`
">
`