Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    May 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Table Backgrounds

    Hi,

    If I have an image set in the background property of a table, is there any way to make it a link so it is clickable?

    Help much appreciated, thanks!

  • #2
    Senior Coder coothead's Avatar
    Join Date
    Jan 2004
    Location
    chertsey, a small town 25 miles south west of london, england.
    Posts
    1,707
    Thanks
    0
    Thanked 237 Times in 232 Posts

  • #3
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,252
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Clickable background

    No, you cannot make a background image clickable.

    You can make a link clickable, and give that a transparent background and somehow position it over the table, but I don't know if that's what you're after.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #4
    Regular Coder Masterslave's Avatar
    Join Date
    Dec 2005
    Posts
    287
    Thanks
    2
    Thanked 0 Times in 0 Posts
    With a background image in a division I do this:
    Code:
    <div id="top" onclick="window.location.href='index.php';"></div>
    In the ID top you set a background-image
    Code:
    #top
    {
        background: url("images/background.jpg");
        background-position: top left;
        background-repeat: no-repeat;
    }
    This only works if you've enabled Javascript in your browser.


  •  

    Posting Permissions

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