background banner

GK User
Wed Nov 14, 2012 7:06 am
Hi everyone!
I want to add background banner in web site with link.
So,
template.css:
Code: Select all
#topf .foo, #topf .foo a {
     display:block;
     padding:0;
    margin:0;
     width:1310px;
     height:702px;
     cursor:pointer;
    z-index: -9999;
}
#topf .foo {
     background: transparent url(http://proufu.ru/images/topf.gif) no-repeat fixed center top;
     float:left;
     margin:0;
    position: fixed;
    top:0;   
}

and default.php:

Code: Select all
<div id="topf">
      <span class="foo"><a href="http://link"> </a></span>
</div>


Link don't work. If to change z-index for "#topf .foo, #topf .foo a" that link covers all website.

website http://proufu.ru
User avatar
Junior Boarder

Konrad M
Wed Nov 14, 2012 8:28 am
Hi,
please try add to override.css
Code: Select all
.gkWrap {
position: relative;
}

and change your code to this one:
Code: Select all
#topf .foo, #topf .foo a {
display: block;
padding: 0;
margin: 0;
width: 1310px;
height: 702px;
cursor: pointer;
z-index: 0;
}

Remember to enable override.css option in template settings. I advise all template css modification add to override.css file. It will avoid issues during further updates.
User avatar

GK User
Wed Nov 14, 2012 9:37 am
cool!!! It's works!
Thanks for background banner and for override.css
User avatar
Junior Boarder

GK User
Wed May 08, 2013 8:10 pm
wow :D

Thanks ! You just resolve one of my problems :D
User avatar
Senior Boarder


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