Jump to content

Image Size Dependent on Area


treeleaf20

Recommended Posts

Maybe this is an easy question:

I have the following CSS:

.fn-area:hover {
position: absolute;
background-image: url(artwork/image.gif);
border: 1px solid #fff;
}

 

The area is different sizes however. Is there anyway to make the image in the background adjust to the size of the area when I hover over it? I don't want the image to repeat if the area is bigger then the image and I don't want only part of the image to appear if it's smaller then the image.

Link to comment
https://forums.phpfreaks.com/topic/179397-image-size-dependent-on-area/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.