I have three problems:
When I tried to use a background image in a smaller size div, the div shows only part of image. How can I show the full or a specific part of image?
I have a smaller image and I want to use in a bigger div. But don't want to use repeat function.
Is there any way in CSS to manipulate the opacity of an image?
Something link this: usign height: auto and width: 100% Makes the elemnt fit any size.
Resize the image to fit the div size.
With CSS3 you can do this:
/* with CSS 3 */ #yourdiv { background: url('bgimage.jpg') no-repeat; background-size: 100%; }
How Do you Stretch a Background Image in a Web Page:
About opacity
#yourdiv { opacity: 0.4; filter: alpha(opacity=40); /* For IE8 and earlier */ }
Or look at CSS Image Opacity / Transparency
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With