Jump to content

Anchors Within Divs


brunocbreis

Recommended Posts

I want to make a div with hidden overflow that contains an image and two arrows (next and previous).When I click the 'next' arrow, it should take me to ANOTHER image, in the same div (this image wasn't appearing before due to the hidden overflow).I think you can do this with javascript, but the site I'm coding for doesn't allow that.Anyway, this is my code, I just don't get what's wrong. Can't I use anchors within the same divs with hidden overflow?

<style>#div {width: 300px;height: 300px;OVERFLOW: HIDDEN;}</style><div id="div"><a name="previous"><img src=url><br><img src="arrowleft"><a href="#next"><img src="arrowright"></a><br><br><br><a name="next"><img src=url><br><a href="#previous"><img src="arrowleft"></a><img src="arrowright"></div>

Link to comment
Share on other sites

well, how are we supposed to help you if you're not giving us the code? Please provide a link or the code that your'e actually using.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...