Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS Is there a way to automatically re-size div according to the size of its background image? Re: Is there a way to automatically re-size div according to the size of its background image?

#138496
Paulie_D
Member

If you can define the bg image sizes as variables in the JS then I suppose so but it’s not something that would be detected automatically.

Certainly not by CSS.