Forums

need help on how to make background clickable (3 posts)

  1. netagurion
    Member
    Posted 1 year ago #

    Hi,
    I am wondering if anybody has a good way to make the background in wordpress a link. The specific scenario is as follows...

    Main content with 1 side bar. White space on either side of the content with

    body {
            color: #363636;
    background:url(images/bg.gif) 0 0 repeat-x #fff;
    }

    I am looking to send anybody who clicks in the whitespace outside of the main content to a url.

    This would function much in the way that some advertisers put ads that seem to be behind and wrapping around the main content of the site... so when someone clicks on the ad that is wrapping the site they get redirected to a specific URL.

    I have done lots of searching and lots of testing and can not come up with a solid solution. I have had the most success with:

    /* This is the logo link clickable area */
    #linky1 {
    display: block;
    text-indent:-9999px;
    /* position: absolute;*/
    float: left;
    top: 0px;
    left: 0px;
    height: 100%;
    width: 23%;
    background-color: transparent;
    }

    and can float 2 of these on the outside of the site but when i resize the window these floats move up to the top of the page and displace the content.

    Any help would be much appreciated.

    Thanks!

  2. MAzCastro
    Member
    Posted 1 year ago #

    yeps, make a 100% sized link, absolutely positioned behind your content.

  3. netagurion
    Member
    Posted 1 year ago #

    I cant figure out how to get it behind my content

    Every time I create it, it covers my whole page with a link...

    Maybe i have it figured out and can not find where to put the link code in...

    <a href="http://testing.com" title="TESTNG" id=linky1> linky </a>

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.