Unwanted 1px border around visited link in FF

7 posts by 3 authors in: Forums > CMS Builder
Last Post: August 1, 2011   (RSS)

Re: [gkornbluth] Unwanted 1px border around visited link in FF

By Toledoh - July 31, 2011

Add this to your css:

:focus {
outline: 0;
}
Cheers,

Tim (toledoh.com.au)

Re: [Toledoh] Unwanted 1px border around visited link in FF

By gkornbluth - July 31, 2011

Hi Tim,

Thanks a bunch.

That worked perfectly.

In all the Goggle searches I did, there was no mention of the focus issue.

Definitely one for the cookbook.

Best,

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Unwanted 1px border around visited link in FF

By zip222 - August 1, 2011

You might want to consider using a CSS Reset style sheet. It will deal with a lot of these browser discrepancies.

http://meyerweb.com/eric/tools/css/reset/

Re: [zip222] Unwanted 1px border around visited link in FF

By gkornbluth - August 1, 2011

Thanks Zip222,

Interesting idea.

I guess I'd have to add the :focus if I wanted that to be a default as well.

Jerry
The first CMS Builder reference book is now available on-line!







Take advantage of a free 3 month trial subscription, only for CMSB users, at: http://www.thecmsbcookbook.com/trial.php

Re: [gkornbluth] Unwanted 1px border around visited link in FF

By zip222 - August 1, 2011

I wasn't able to view the specific problem you were having, but I think img { border:0 } would likely have fixed it. This is part of the reset.

Re: [zip222] Unwanted 1px border around visited link in FF

By Toledoh - August 1, 2011

As part of setting up a new site, I always include the reset from Eric, but it took me ages to figure out why some things just didn't act right... IMHO, vertical-align: baseline; is a pain, but now I understand it I can work around it.

BTW: I don't think border:0 would have worked, it's a different problem. outline:0 for all items, plus focus seems to do the trick.
Cheers,

Tim (toledoh.com.au)