I have an image inside a div which is a set size. However because the div is square and the image is not - the image needs to bleed off.
For web the html would be as follows:
<div style="height:600px;width:600px;border:1px solid #CCC;overflow:hidden;display:block;">
<img src="img/image01.jpg" style="height:600px;width:900px;display:block;" />
</div>
which works and looks good however when i run through prince it just squashes the image?
Any way around this?
Thanks
For web the html would be as follows:
<div style="height:600px;width:600px;border:1px solid #CCC;overflow:hidden;display:block;">
<img src="img/image01.jpg" style="height:600px;width:900px;display:block;" />
</div>
which works and looks good however when i run through prince it just squashes the image?
Any way around this?
Thanks