Jump to content

Banner border color Killer Skin


Guest degsey69

Recommended Posts

Guest degsey69

Hi There

I am using killer skin and when I insert a banner into the side panels I am getting purple borders around the banner. I have set the css file to give a designated color around the borders which it is.

I am I right in thinking that I need to edit one of the css files and if yes which one and where? :D

Link to comment
Share on other sites

Derek, to expound further on convict's answer: The reason for these borders is that by default, a link on an image produces a blue border; violet if the link has been visited. The reason you are getting these borders is that you have links on these banners. So to disable the borders, you can specify how a browser will treat a linked image this way:

a img {

border: 0px;

}

You can control specific types of links, too, like this:

a:link img, a:visited img {

border: 0px;

}

Link to comment
Share on other sites

Guest degsey69

Derek, to expound further on convict's answer: The reason for these borders is that by default, a link on an image produces a blue border; violet if the link has been visited. The reason you are getting these borders is that you have links on these banners. So to disable the borders, you can specify how a browser will treat a linked image this way:

a img {

border: 0px;

}

You can control specific types of links, too, like this:

a:link img, a:visited img {

border: 0px;

}

Hi Mark

I just tried that and I think I have put the code in wrong as it did not work for me

<a href="http://www.mpc-direct.com/index.php?act=viewCat&catId=77"><img {border: 0;}



src="http:\\www.mpc-direct.com\adverts\banner.jpg"></a>

What have I done wrong ;)

Link to comment
Share on other sites

That code was phrased for stylesheets, not inline styles. There are no curly brackets on inline styles . . . Add my code to your stylesheet.

Convict's post was also about adding a global style to stylesheet, but you can add inline style to the img tag itself, like this:

<img src="..." style="border: 0px;">

You can try that at each image call, inline code in the templates, as you have tried with my code.

My code above is a global style on images that have links.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...