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!
'<style type="text/css">
html, body {
margin: 0px;
width: 100%;
height: 100%;
background-color: #000;
}
#image {
z-index: 0;
height: 99%;
}
#all {
text-align: center;
position: absolute;
width: 80%;
height: 93%;
overflow: hidden;
right: 1%;
bottom: 6%;
}
</style>
</head>
<body>
<div id="all">
<img src="hor.jpg" alt="" id="image"></div>
</body>
</html>'
Comments
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
`
<?php if (!checkForPassword()) { ?>
<?php
if(function_exists("printPagedThumbsNav")) {
printPagedThumbsNav(6, FALSE, gettext('« prev thumbs'), gettext('next thumbs »'), 40, 40);
} ?>
<?php if(getOption("Use_thickbox")) {
$thickboxclass = " class=\"thickbox\"";
} else {
$thickboxclass = "";
}
?>
" title="<?php echo getBareImageTitle();?>">
<?php printCustomSizedImageMaxSpace(getBareImageTitle(),500,500); ?>
`