Background image with link

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Wed Jun 11, 2014 2:05 pm
Reply with quote
Report this post
Hello. i am trying to put a link into my background image. I opened default.php in layouts folder and i put this code in

Code: Select all
<a id="skin" class="skin" target="_blank" href="http://gr.playstation.com/ps4/" style="background-image: url(http://localhost/unboxholics/images/00003.jpg); background-attachment: scroll; background-origin: padding-box; background-position: 50% 0px; background-repeat: no-repeat no-repeat;"></a>


Then i put this code in override.css

Code: Select all
a#skin.skin{
   background-image:    background-image: url(../images/00003.jpg);

background-attachment: scroll;
background-origin: padding-box;
background-position: 50% 0px;
background-repeat: no-repeat no-repeat;}

a#skin {
display: block;
width: 100%;
height: 100%;
position: fixed;
top: 0;
left: 0;}


The image appeared and the link worked fine but it created another problem. The image is on top of other module positions and that causes some content not to appear or not working as they supposed to work.

I tried to put the first code between other module positions ( after gkmenuwrapper or after gkPage) but it causes similar problems. Do you have any clue what it needs to work? Thanks in advance.
User avatar
Junior Boarder

GK User
Wed Jun 11, 2014 3:36 pm
Reply with quote
Report this post
There is no easy way to put huge link in the background, probably it is better to use JavaScript to link some existing container (like BODY) to link it to desired URL.
User avatar
Platinum Boarder


cron
Remember me
Register New Account
If you are old Gavick user, click HERE for steps to retrieve your account.