Using Div's Instead Of Anchors
On my website, www.funpunks.com, in the top left of the page you'll see the navigation. I made this using fixed-size div's with background images, and using javascript to redirect
Solution 1:
Why don't you still use anchors but display them as block-level elements with CSS?
a.some-class { display:block; }
Solution 2:
Definitely want to use <a>'s here. Go for the semantic markup every time. Just do style="display:block" and set the width, height, background image etc. For example, take a look at one of my sites here: http://krystalware.com/Products/SlickUpload/. The tabs on the left and top are both a's, styled properly.
Post a Comment for "Using Div's Instead Of Anchors"