sho0sh — 2010-09-19T07:24:53-04:00 — #1
First post here so be gentle!
Am trying to build my friends pub website for him and have run into a bit of a mountain. I am using NivoSlider for the slideshow and want to float a div over it with a transparent background. For now I am just using a block colour background and slideshow next to each other, but its just ugly!
When I managed to float the div over thefull width slideshow in this page http://deadspacedesign.co.uk/warwick/gallery.html after each transition, the div would dissapear and fade in with the next slide. I think it may have something to do with the z-index but my limited knowledge has got me nowhere!
Any help would be greatly appreciated
sho0sh — 2010-09-20T05:58:14-04:00 — #2
Thanks for the help guys, managed a bit of a botched workaround in the end with help from my friend.
sho0sh — 2010-09-19T12:49:08-04:00 — #3
Major progress!! Thank you so much.
Just need to sort the positioning out now, absolute positioning isnt working with this as the rest of the site moves when the window is resized, any ideas?
Thanks for previous input hugely!
ralphm — 2010-09-19T10:24:28-04:00 — #4
Ah, I see.
Keep the images full width and try something like this:
border:1px solid #666666;
The last rule uses a partially transparent background color, but it won't work in all browsers, so you could instead use a semi-transparent image for the background.
ryanreese — 2010-09-19T14:39:42-04:00 — #5
That's just the way absolute positioning works :). Your best bet would be to remove the absolute positioning (I haven't take na look at the site to see if it's neccessary, but most of the time it isn't.)
ralphm — 2010-09-19T07:40:06-04:00 — #6
Hi sho0sh, welcome to SitePoint!
To be honest, I haven't a clue what you are trying to do. Unless I'm missing something, you haven't said what the overlay div is meant to do?
sho0sh — 2010-09-19T08:24:40-04:00 — #7
Thanks for your reply, this is a mockup of what I am trying to do...