SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Enthusiast
    Join Date
    Sep 2009
    Posts
    62
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    How to make columns clickable (HTML)?

    I would like to construct a table which has a unique link for each column.
    I am extremely new to HTML and other web technologies.
    I have tried to figure out if I can use colgroup and onClick="window.open('http://yahoo.com', but I honestly have no idea
    what to do.

    Suggestions? Please and Thank you very much.

  2. #2
    In memoriam gold trophysilver trophybronze trophy Dan Schulz's Avatar
    Join Date
    May 2006
    Location
    Aurora, Illinois
    Posts
    15,476
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's the purpose of the table?

  3. #3
    SitePoint Member
    Join Date
    Oct 2009
    Posts
    11
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    please give your sample code here
    Last edited by Dan Schulz; Oct 10, 2009 at 21:37. Reason: removed fake signature

  4. #4
    SitePoint Zealot stikkybubble's Avatar
    Join Date
    Sep 2006
    Location
    Pluto
    Posts
    182
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't know if you can use colgroup. It's a bit tricky to get this sort of thing (table cells & links) working right in all browsers, but a little experimentation should sort it out. I think you will probably have to add an <a href=""> to every table cell, and use css to stretch them to fill all of the cell.

  5. #5
    SitePoint Enthusiast
    Join Date
    Feb 2009
    Posts
    39
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Do you want to make whole column clickable or just the text inside the column?

  6. #6
    Follow: @AlexDawsonUK silver trophybronze trophy AlexDawson's Avatar
    Join Date
    Feb 2009
    Location
    England, UK
    Posts
    8,111
    Mentioned
    0 Post(s)
    Tagged
    1 Thread(s)
    I am with Dan, we need to know what the purpose of the table is before we can advise you, I am worried it sounds like your trying to produce a link farm.


Bookmarks

Posting Permissions

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