Jump to content

resizing the image to match the div


divinedesigns1

Recommended Posts

hello, i am getting the hang of creating a resize able template, but i cant get the image that is set to its background to resize once the browser is resized also, how can i go about doing this?

Link to comment
Share on other sites

Please post an example for your question. Otherwise, I'd guess that the answer is resizing with percentages.

Link to comment
Share on other sites

I believe you're looking for the background-size property. It's not supported in older browsers, though. The alternative is to use an <img> element with absolute position, 100% width and a negative z-index.
yeah, i found the answer yesterday, it worked great now everything resizes hehehehehehe thanks ingolme
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...