Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Purple Border on Links


Go to End


2 Posts   1524 Views

Avatar
animasola

Community Member, 121 Posts

3 May 2010 at 7:06pm

I manually placed links on my Page.ss and have images on them.

It's kinda like this:
<a href="link"><img src="sourceimage" /></a>

In Chrome and Safari, it looks ok but in IE and Firefox there is this blue and purple border around them. I don't understand why. Is it in the CSS?

An image showing the screenie is attached.

Attached Files
Avatar
Invader_Zim

Community Member, 141 Posts

3 May 2010 at 10:00pm

Hi.

Add this to your stylesheet:

a img { border: none; }

This will remove the blue border from all images that are used as links.

Hope this works,
cheers Christian