Results 1 to 4 of 4

Thread: [RESOLVED] Make a <div> a link

  1. #1

    Thread Starter
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Resolved [RESOLVED] Make a <div> a link

    How do I make an entire <div> element one big hyperlink?

    I can enclose it within an <a> tag and it works (in Firefox at least), but it's not valid XHTML.

  2. #2
    Frenzied Member DeadEyes's Avatar
    Join Date
    Jul 2002
    Posts
    1,196

    Re: Make a <div> a link

    Will it work if you enclose it in a <A> tag and use <SPAN> instead?

  3. #3

    Thread Starter
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Make a <div> a link

    Nope

  4. #4

    Thread Starter
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Make a <div> a link

    Never mind I found the proper way to do it here
    http://www.projectseven.com/tutorials/css/uberlinks/

    Making a menu using <ul> and <li> tags and CSS. Much better.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width