davivid
davivid

Reputation: 5960

resize content div + image on browser resize

What would be the best way to resize a content div to match the browser, keeping a white margin around it, whilst also resizing an image contained within it, so that it keeps a good aspect ratio?

this is the effect i am looking to create: http://www.louisvuitton.com/

Upvotes: 0

Views: 572

Answers (1)

user356808
user356808

Reputation:

You would set the margins of the container whether that is the body or another block element container

body {margin:20px;}

Upvotes: 1

Related Questions