Comments on: outline https://css-tricks.com Tips, Tricks, and Techniques on using Cascading Style Sheets. Thu, 16 Dec 2021 02:38:50 +0000 hourly 1 https://wordpress.org/?v=6.5.5 By: Kerry Johnson https://css-tricks.com/almanac/properties/o/outline/#comment-1787056 Thu, 16 Dec 2021 02:38:50 +0000 http://css-tricks.com/?page_id=14079#comment-1787056 outline now follows border-radius shape in latest Chrome version. Yay!

]]>
By: Albert https://css-tricks.com/almanac/properties/o/outline/#comment-1773808 Fri, 11 Jun 2021 05:54:57 +0000 http://css-tricks.com/?page_id=14079#comment-1773808 outline now follows border-radius shape in Firefox since 88: https://hacks.mozilla.org/2021/04/never-too-late-for-firefox-88/

]]>
By: Priyadarshi gautam https://css-tricks.com/almanac/properties/o/outline/#comment-1759582 Fri, 10 Jul 2020 08:43:04 +0000 http://css-tricks.com/?page_id=14079#comment-1759582 { outline:none;}

]]>
By: Nico Potgieter https://css-tricks.com/almanac/properties/o/outline/#comment-1756285 Sat, 02 May 2020 17:39:51 +0000 http://css-tricks.com/?page_id=14079#comment-1756285 Hi, how do I apply this to the mobile version of my site? I understand that some people don’t have the ability to use a mouse so I don’t want to apply it to the desktop site, when I add

a:focus {
  outline: none;"
}

to the css input area it only removes the focus border from the desktop site but leaves the focus border on tablet and mobile, this happens on a dropdown menu.

]]>
By: bjan https://css-tricks.com/almanac/properties/o/outline/#comment-1599514 Tue, 09 Feb 2016 13:38:22 +0000 http://css-tricks.com/?page_id=14079#comment-1599514 In reply to Mark.

That is border, not outline. There is difference.

]]>
By: bjan https://css-tricks.com/almanac/properties/o/outline/#comment-1599513 Tue, 09 Feb 2016 13:36:47 +0000 http://css-tricks.com/?page_id=14079#comment-1599513 In reply to Anonymous.

Just use outline: none; border-right: … and it’s almost same effect.

]]>
By: Juan Gallardo https://css-tricks.com/almanac/properties/o/outline/#comment-1598145 Fri, 20 Nov 2015 18:54:32 +0000 http://css-tricks.com/?page_id=14079#comment-1598145 In reply to Anonymous.

I totally agree. I was hoping to use the outline on just one side like

outline-right: 2px #333 solid;

]]>
By: Francky Kleyneman https://css-tricks.com/almanac/properties/o/outline/#comment-1595651 Sun, 05 Jul 2015 03:00:30 +0000 http://css-tricks.com/?page_id=14079#comment-1595651 Warning: accessibility alert!

Lots of web builders don’t like the outlines, and are hiding them. But removing all outlines is making it impossible for Tab users to see on which link they are (mouse users can see it by hovering with the pointer hand).

The guideline is:
http://www.w3.org/TR/WCAG20/#keyboard-operation (Web Content Accessibility Guidelines (WCAG) 2.0 / Guideline 2.1: Make all functionality available from a keyboard).

Happily there is a simple solution to hide the outlines for mouse users, maintaining the accessibility for Tab users!

See:
http://www.456bereastreet.com/archive/200910/remove_the_outline_from_links_on_active_only/

]]>
By: kaushik https://css-tricks.com/almanac/properties/o/outline/#comment-1592282 Mon, 02 Feb 2015 09:28:04 +0000 http://css-tricks.com/?page_id=14079#comment-1592282 You have missed important thing. The outline offset.

]]>
By: Mark https://css-tricks.com/almanac/properties/o/outline/#comment-1592139 Mon, 26 Jan 2015 02:13:50 +0000 http://css-tricks.com/?page_id=14079#comment-1592139 “1. It always goes around all the sides, you can’t specify particular sides”
Objection, your honor! Another glorious what-if flop here!

http://stackoverflow.com/questions/28142833/border-outline-html5-css3

We most 100% certainly CAN set that boder-image border to JUST ONE SIDE. So the HUGE question here is this. If we are using a border-image, and since img is one of the original IE1+ hangers-on-to-outlines, why can’t we code that [border] image in some way to display its outline… even when we display that [border] image on just one side (like say, border-image-bottom)?

Burb [but-u-really-better] play with this one-time at W3 (if you can’t afford codepen like me, lol).

http://www.w3schools.com/cssref/css3_pr_border-image.asp

]]>
By: Karppalo https://css-tricks.com/almanac/properties/o/outline/#comment-1584620 Fri, 22 Aug 2014 06:32:00 +0000 http://css-tricks.com/?page_id=14079#comment-1584620 And derp, on Chrome setting the “outline-style: auto” also sets “outline-width: 3px” so I guess the best option is to use “outline: 0 solid transparent” or something like that…

]]>
By: Karppalo https://css-tricks.com/almanac/properties/o/outline/#comment-1584619 Fri, 22 Aug 2014 06:23:16 +0000 http://css-tricks.com/?page_id=14079#comment-1584619 Interesting. On Firefox 31.0 I had to set “outline-style: auto;” on a DIV, which contained an image, to fix some weird clipping problem whenever the image was translateY(-20px):ed on DIV:hover. The part of the image that was going over the DIV box model was clipped for a split second before it was again displayed properly.

There were some other combinations too that worked, like “outline: 0px solid transparent” and etc. The defaults seems to be (at least on Chrome) “outline: 0px none rgb(255, 255, 255”.
I didn’t see this problem on Chrome nor on IE.

]]>
By: Anonymous https://css-tricks.com/almanac/properties/o/outline/#comment-1584205 Mon, 04 Aug 2014 09:22:45 +0000 http://css-tricks.com/?page_id=14079#comment-1584205 outline : 0;
is needed in Chrome/Chromium to remove the default blue outline around input and textarea elements.

]]>
By: Anonymous https://css-tricks.com/almanac/properties/o/outline/#comment-1584204 Mon, 04 Aug 2014 09:22:25 +0000 http://css-tricks.com/?page_id=14079#comment-1584204 outline : 0; i
is needed in Chrome/Chromium to remove the default blue outline around input and textarea elements.

]]>
By: Anonymous https://css-tricks.com/almanac/properties/o/outline/#comment-1584203 Mon, 04 Aug 2014 09:21:56 +0000 http://css-tricks.com/?page_id=14079#comment-1584203 outline : 0; is needed in Chrome/Chromium to remove the default blue outline around input and textarea elements.

]]>