I need to make an image within a div
to have a width of 600px
and a height of 300px
without distorting the image.
I have a notion about css3 and html5 and I'm working on the layout of a blog on the Blogger platform. I've changed a lot in the source code of the initial layout. And now I want to do is this:
I want the post to show a preview image that is automatically generated from the first image of the post, which in case I have already programmed it to happen, but I need the preview to have width:600px
and height:300px
without distorting the image which will serve as a preview on the home page.
It can be cut, but not distorted, could anyone help me do that?
Link to the blog: link
Example of how I want the image to be:
link