Get KoolPHP UI with 30% OFF!

define the width and high from an image

Gerd Huber
Hallo,
can i define another width and high ?
Thank you
Gerd
Posted Sep 3, 2015 Kool
Peter
What do you mean by "another"? Do you mean you want to set a custom width and height for image?
Posted Sep 5, 2015 , edited Sep 5, 2015 Kool
Gerd Huber
yes that it. i want to define a custom with and height .
gerd
Posted Sep 6, 2015 Kool
Peter
Do you want to set the custom width and height for small image or big image? I will try to make a temporarily solution to set them while waiting for official release with width and height properties added ( I have submitted the request to dev.team)
Posted Sep 7, 2015 Kool
Gerd Huber
Hallo Peter,
i want it for the small image. thank you
Gerd
Posted Sep 7, 2015 Kool
Peter
Hi,
You cover the KoolImageView render with a <div> or whatever tag:
<div class='box'>
   <?php echo $kiv->Render(); ?>
</div>

You set the css style with custom width and height like this:
div.box img
{
   width:160px;
   height:80px;
}

Hope that help.
Posted Sep 7, 2015 , edited Sep 7, 2015 Kool
Gerd Huber
that works great, thank you
Gerd
Posted Sep 8, 2015 Kool