Jump to content

[SOLVED] Making <div> clickable


Recommended Posts

Hi all!

I use the "tmpl-multible-white" theme and try to make the banner clickable. The header.tpl refers to "top_banner" in the CSS file /tmpl-multible-white/css/global.css

This is the code in header.tpl

<!-- top_line -->

                            



This is the code in global.css

#top_banner {
background: url('../img/banner.png');
width:100%;
height:160px;
}



I have tried various methods to make the link clickable but it does not work.

Happy for some qualified answers.


My website: Shoppa kläder online


/Robin

Link to comment
Share on other sites

write below code:

                            



And then edit your global.css like below:

#top_banner {
  height:160px;
}

#top_banner a {
  background:url("../img/banner.png") no-repeat scroll 0 0 transparent;
  float:left;
  height:160px;
  width:990px;
}



It will work like what said also you may give a link to your top banner image. add your link instead of #.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...