- This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
Viewing 6 posts - 1 through 6 (of 6 total)
- The forum ‘CSS’ is closed to new topics and replies.
The forums ran from 2008-2020 and are now closed and viewable here as an archive.
hey
Im trying to add an image over an image. The image im trying to overlay is a 1px x 1px transparent color that will repeat to the width and height of the image it is overlaying.
The issue is i can’t get it to work….
i’ve tried using the
But this is not working. And i can’t use css sprites as the images are all different.
Can anyone help me out on this please.
B
You could also just change the transparency of the image itself using css –
– might save you the trouble…
If i reduce the opacity will this show the blue tint that i want?
Say if i put the blue as a background then on the hover state i reduce the opacity of the image. Will the blue show through?
B
Yup. Just be sure to apply the transparency classes to the image itself, not the div. Otherwise they’ll both fade in tandem and it’ll just look washed out. You can change the opacity values (at 0.5 in the example) to whatever setting suits you best (i.e. how much pink you want to show through). Hope this helps!
Hey Eamonn,
What you have suggested has work. But not for all images with an anchor link
I have the sidebar images working because i put an empty div in which had a background to it and then just faded the image that was on top of it down on the hover.
But when i try the same on my main content images they are floating to the left. So i thought by floating them to the right all my problems would be solved. Well not really as they seem to now overlap one another and not respecting the margins given to them. EEk!!!
Any ideas?
B
I’m not sure I understand what’s happening there – is the new background pushing the images to the left?!
Have you a link to the page? I could have a closer look there…