Guest mikephall83 Posted April 10, 2006 Share Posted April 10, 2006 I have a set of Div tags that are each 500 px wide and 100 px tall with background images in them.The text for each div is embedded in the image and not part of the code.Each div is its own class and has a corresponding class in CSS.I want the entire div to act as a link, essentially a big button that the user can click for navigation.How do I do that? Link to comment Share on other sites More sharing options...
scott100 Posted April 10, 2006 Share Posted April 10, 2006 There are 2 ways you can do this, 1 put an anchor round the div, 2 add an onclick to the div.<a href="http://www.google.com"><div>my div</div></a><div onclick="window.location='http://www.google.com'">my div</div> Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now