I have a variable width image that I would like to concentrate in a container divthat will focus on the page.
If I set the width to divand assign it margin: 0 auto, it will center, but the problem is that the image inside divhas a variable width, so I can not set the width on the container div.
Any suggestions?
Clarification: The container divhas a background image that should be rotated 30 pixels on either side of the image. Because of this, the container divmust have a given width, but be able to expand / compress based on the size of the image.
source
share