*:focus { outline: none }

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chris Bradbury

    *:focus { outline: none }

    Hi,

    I'm posting in this forum for the first time so if I break any conventions
    or protocols I'm sorry.

    I've attached this style:

    *:focus { outline: none }

    to a page but it doesn't remove the dotted lines (surrounding links that
    have been 'hit') like it's supposed to.

    http://www.arvonfoundation.org/test/new_index5.htm is the page with the
    style attached.

    http://www.arvonfoundation.org/test/...main_style.css is the
    stylesheet.

    Thanks for any help.

    Chris Bradbury


  • Anne van Kesteren

    #2
    Re: *:focus { outline: none }

    Chris Bradbury wrote:[color=blue]
    > Hi,
    >
    > I'm posting in this forum for the first time so if I break any conventions
    > or protocols I'm sorry.
    >
    > I've attached this style:
    >
    > *:focus { outline: none }
    >
    > to a page but it doesn't remove the dotted lines (surrounding links that
    > have been 'hit') like it's supposed to.
    >
    > http://www.arvonfoundation.org/test/new_index5.htm is the page with the
    > style attached.
    >
    > http://www.arvonfoundation.org/test/...main_style.css is the
    > stylesheet.
    >
    > Thanks for any help.
    >
    > Chris Bradbury
    >
    >[/color]

    AFAIK, this is not supported. Perhaps Safari does support it, but I
    can't test it at the moment.

    --
    Anne van Kesteren
    <http://www.annevankest eren.nl/>

    Comment

    • brucie

      #3
      Re: *:focus { outline: none }

      in post <news:4002b508@ 212.67.96.135>
      Chris Bradbury said:
      [color=blue]
      > I've attached this style:
      > *:focus { outline: none }
      > to a page but it doesn't remove the dotted lines (surrounding links that
      > have been 'hit') like it's supposed to.[/color]

      why do you want to make it more difficult for people to navigate your
      site?

      --
      brucie

      Comment

      • Chris Bradbury

        #4
        Re: *:focus { outline: none }

        Hi Anne,

        A colleague has used it with no problem. I also found this info which seems
        to suggest it's supported:



        Also tried this different approach:



        but...didn't work!

        TIA
        Chris

        "Anne van Kesteren" <mail@annevanke steren.nl> wrote in message
        news:btucpe$q4b $1@reader11.wxs .nl...[color=blue]
        > Chris Bradbury wrote:[color=green]
        > > Hi,
        > >
        > > I'm posting in this forum for the first time so if I break any[/color][/color]
        conventions[color=blue][color=green]
        > > or protocols I'm sorry.
        > >
        > > I've attached this style:
        > >
        > > *:focus { outline: none }
        > >
        > > to a page but it doesn't remove the dotted lines (surrounding links that
        > > have been 'hit') like it's supposed to.
        > >
        > > http://www.arvonfoundation.org/test/new_index5.htm is the page with the
        > > style attached.
        > >
        > > http://www.arvonfoundation.org/test/...main_style.css is[/color][/color]
        the[color=blue][color=green]
        > > stylesheet.
        > >
        > > Thanks for any help.
        > >
        > > Chris Bradbury
        > >
        > >[/color]
        >
        > AFAIK, this is not supported. Perhaps Safari does support it, but I
        > can't test it at the moment.
        >
        > --
        > Anne van Kesteren
        > <http://www.annevankest eren.nl/>[/color]


        Comment

        • Chris Bradbury

          #5
          Re: *:focus { outline: none }

          It's not that, the client wants them gone and the client is GOD...

          Chris

          "brucie" <shit@bruciesus enetshit.info> wrote in message
          news:btucqc$b78 ht$1@ID-117621.news.uni-berlin.de...[color=blue]
          > in post <news:4002b508@ 212.67.96.135>
          > Chris Bradbury said:
          >[color=green]
          > > I've attached this style:
          > > *:focus { outline: none }
          > > to a page but it doesn't remove the dotted lines (surrounding links that
          > > have been 'hit') like it's supposed to.[/color]
          >
          > why do you want to make it more difficult for people to navigate your
          > site?
          >
          > --
          > brucie[/color]


          Comment

          • Steve Pugh

            #6
            Re: *:focus { outline: none }

            "Chris Bradbury" <cjbradbury@dia l.pipex.com> wrote:[color=blue]
            >"brucie" <shit@bruciesus enetshit.info> wrote in message
            >news:btucqc$b7 8ht$1@ID-117621.news.uni-berlin.de...[color=green]
            >> in post <news:4002b508@ 212.67.96.135>
            >> Chris Bradbury said:
            >>[color=darkred]
            >> > I've attached this style:
            >> > *:focus { outline: none }
            >> > to a page but it doesn't remove the dotted lines (surrounding links that
            >> > have been 'hit') like it's supposed to.[/color]
            >>
            >> why do you want to make it more difficult for people to navigate your
            >> site?
            >>[/color]
            >It's not that, the client wants them gone and the client is GOD...[/color]

            But is the client aware of the negative impact this will have on his
            site? Has the client signed off on this, acknowledging that what he
            wants is against your expert advice, and accepted all responsibility
            for future costs that might arise as a result of following this
            course?

            Anyway, I'm fairly certain that :focus is supported by IE and I know
            that outline: isn't so this solution definitely won't work for the
            majority of user's out there.

            Opera supports outline but uses highlighting not outline on the
            currently selected link. Opera's support for :focus seems to be
            patchy.

            Mozilla supports :focus and it's own -moz-outline property, so
            *:focus { -moz-outline: none } will work in Mozilla.

            If the client is determined to screw any potential customers who
            happen not to use a mouse to navigate web pages then you'll have to
            use JavaScript methods to hide the focus rectangle.

            Steve

            --
            "My theories appal you, my heresies outrage you,
            I never answer letters and you don't like my tie." - The Doctor

            Steve Pugh <steve@pugh.net > <http://steve.pugh.net/>

            Comment

            • Eric Bohlman

              #7
              Re: *:focus { outline: none }

              Steve Pugh <steve@pugh.net > wrote in
              news:lkh50013pi 6uvj2vvaho9562e b2r16sgt2@4ax.c om:
              [color=blue]
              > If the client is determined to screw any potential customers who
              > happen not to use a mouse to navigate web pages then you'll have to
              > use JavaScript methods to hide the focus rectangle.[/color]

              It's worth mentioning that there are many people who use a mouse for
              general link/menu navigation but prefer to use the keyboard for navigating
              between form elements (less hand-shifting when you're typing).

              Comment

              • Brian

                #8
                Re: *:focus { outline: none }

                How am I supposed to post my replies in a newsgroup?:

                [color=blue]
                > brucie wrote
                >[color=green]
                >> Chris Bradbury said:
                >>[color=darkred]
                >>> I've attached this style:
                >>> *:focus { outline: none }
                >>> to a page but it doesn't remove the dotted lines (surrounding
                >>> links that have been 'hit') like it's supposed to.[/color]
                >>
                >> why do you want to make it more difficult for people to navigate
                >> your site?[/color][/color]

                Chris Bradbury wrote:[color=blue]
                > It's not that,[/color]

                Is *is* that. You are removing information that users are accustomed
                to seeing, information that they use to figure out where they've been.
                [color=blue]
                > the client wants them gone and the client is GOD...[/color]

                Tempting though it is to reply with smart-alec responses ("Does God
                pay well? Could you ask him if he *does*, after all, play dice with
                the universe? etc.), I'll stick to the topic.

                The client has hired you to design a site. Presumably, this client
                wants a site that visitors will find easy to use. You are the expert.
                Isn't it your job to warn the client that their wish to remove
                navigation hints (the focus outline) conflicts with the goal of
                creating a functioning site?

                --
                Brian
                follow the directions in my address to email me

                Comment

                • Neal

                  #9
                  Re: *:focus { outline: none }

                  On Mon, 12 Jan 2004 15:51:33 -0000, Chris Bradbury
                  <cjbradbury@dia l.pipex.com> wrote:
                  [color=blue]
                  > It's not that, the client wants them gone and the client is GOD...[/color]

                  If I tell the architect I don't want any load-bearing walls on the first
                  floor, and no cross-beams and pillars because I don't like how they look,
                  is it the architect's duty to build me a house that will fall down, or to
                  politely tell me that I'm an idiot and to let him do the job I'm paying
                  him to?

                  Biggest problem with web authoring - too many forget that the structure is
                  more important than the presentation.

                  Comment

                  • Stephen Poley

                    #10
                    Re: *:focus { outline: none }

                    Top-posting corrected; please have a quick read of



                    On Mon, 12 Jan 2004 15:51:33 -0000, "Chris Bradbury"
                    <cjbradbury@dia l.pipex.com> wrote:
                    [color=blue]
                    >"brucie" <shit@bruciesus enetshit.info> wrote in message
                    >news:btucqc$b7 8ht$1@ID-117621.news.uni-berlin.de...[color=green]
                    >> in post <news:4002b508@ 212.67.96.135>
                    >> Chris Bradbury said:
                    >>[color=darkred]
                    >> > I've attached this style:
                    >> > *:focus { outline: none }
                    >> > to a page but it doesn't remove the dotted lines (surrounding links that
                    >> > have been 'hit') like it's supposed to.[/color]
                    >>
                    >> why do you want to make it more difficult for people to navigate your
                    >> site?[/color][/color]
                    [color=blue]
                    >It's not that, the client wants them gone and the client is GOD...[/color]


                    Gently point out to the client that visitors may decide not to believe
                    in him ...

                    The outline is there for a reason, and some people will find the site
                    very difficult (even impossible) to use without it. Try navigating the
                    site using the keyboard. Oh, and by the way - you do know that not all
                    browsers use a dotted outline, don't you?

                    --
                    Stephen Poley


                    Comment

                    • DU

                      #11
                      Re: *:focus { outline: none }

                      Chris Bradbury wrote:[color=blue]
                      > It's not that, the client wants them gone and the client is GOD...
                      >
                      > Chris
                      >
                      > "brucie" <shit@bruciesus enetshit.info> wrote in message
                      > news:btucqc$b78 ht$1@ID-117621.news.uni-berlin.de...
                      >[color=green]
                      >>in post <news:4002b508@ 212.67.96.135>
                      >>Chris Bradbury said:
                      >>
                      >>[color=darkred]
                      >>>I've attached this style:
                      >>>*:focus { outline: none }
                      >>>to a page but it doesn't remove the dotted lines (surrounding links that
                      >>>have been 'hit') like it's supposed to.[/color]
                      >>
                      >>why do you want to make it more difficult for people to navigate your
                      >>site?
                      >>
                      >>--
                      >>brucie[/color]
                      >
                      >
                      >[/color]


                      AFAIK, outline is only supported by Opera 7.x and there are redraw,
                      repaint issues/matters with dynamic pseudo-classes like :focus and
                      :active. And button does not support well the pseudo-class :focus... at
                      least not extremely well.

                      We've been over this issue before in another newsgroup (alt.html) and it
                      was answered completely. At the end, after hearing all the arguments,
                      the original poster decided not to try to remove those dotted lines.

                      Efforts to remove these lines can not be assured because browser
                      manufacturers have to comply with accessibility guidelines and laws
                      involving people with disabilities. In the end, users could force these
                      lines (user stylesheets, user prefs settings, userContent.css , etc.); at
                      least they can in Opera 7.x and Mozilla-based browsers.

                      Just tell your boss that it is in his best objective interests to leave
                      these lines as they are. If you need more arguments, just ask in here:
                      there are plenty of good arguments for those dotted lines.
                      - improved recognition of the last element which last had focus or was
                      active
                      - keyboard navigation greatly increased (visual feedback)
                      - possible lawsuit for making a website harder to use for people with
                      disabilities

                      DU

                      Comment

                      • Markus Ernst

                        #12
                        Re: *:focus { outline: none }

                        "Stephen Poley" <sbpoleySpicedH amTrap@xs4all.n l> schrieb im Newsbeitrag
                        news:dr8700hdir io3u106ovjtd6kf b89kd67ei@4ax.c om...[color=blue]
                        > Top-posting corrected; please have a quick read of
                        > http://www.xs4all.nl/~sbpoley/toppost.htm
                        >
                        >[/color]
                        ....
                        [color=blue]
                        > Oh, and by the way - you do know that not all
                        > browsers use a dotted outline, don't you?[/color]

                        Some draw a thick blue shadow (Mac IE 5) which is terribly ugly specially in
                        image maps.

                        The javascript code to remove it is <a href="page.htm"
                        onFocus="if(thi s.blur)this.blu r()">.

                        Now that you have read lots of arguments about this issue you can decide if
                        you want to use it or not. As you have to insert the attribute into every
                        single element you can also use it in a differenciated way. I personally
                        never use it in form elements as they are quite likely to be accessed with
                        the keyboard, and I never use it in application-like sites anyway. But
                        sometimes - specially with image maps and things like that - it's just nice
                        to get rid of these lines.

                        --
                        Markus


                        Comment

                        • kchayka

                          #13
                          Re: *:focus { outline: none }

                          Markus Ernst wrote:[color=blue]
                          >
                          > But
                          > sometimes - specially with image maps and things like that - it's just nice
                          > to get rid of these lines.[/color]

                          As primarily a keyboard user, I couldn't disagree more.

                          --
                          To email a reply, remove (dash)un(dash). Mail sent to the un
                          address is considered spam and automatically deleted.

                          Comment

                          • Alan J. Flavell

                            #14
                            Re: *:focus { outline: none }

                            On Fri, 16 Jan 2004, Markus Ernst wrote:
                            [color=blue]
                            > Some draw a thick blue shadow (Mac IE 5) which is terribly ugly specially in
                            > image maps.[/color]

                            Then make some adjustments to your *own* browser. Don't interfere
                            with usability features for your readers.
                            [color=blue]
                            > The javascript code to remove it is <a href="page.htm"
                            > onFocus="if(thi s.blur)this.blu r()">.[/color]

                            Another good reason for disabling javascript coming from untrusted
                            sites, then.
                            [color=blue]
                            > Now that you have read lots of arguments about this issue you can decide if
                            > you want to use it or not.[/color]

                            Please decide for yourself - but do *not* presume to decide for your
                            readers.

                            Stylesheet proposals are fine, within some bounds of what is
                            reasonable; but sabotaging usability features of the user's browser
                            ipso facto goes beyond the bounds of what is reasonable, in my view.

                            Comment

                            • Markus Ernst

                              #15
                              Re: *:focus { outline: none }

                              "Alan J. Flavell" <flavell@ph.gla .ac.uk> schrieb im Newsbeitrag
                              news:Pine.LNX.4 .53.04011614142 40.29859@ppepc5 6.ph.gla.ac.uk. ..[color=blue]
                              > On Fri, 16 Jan 2004, Markus Ernst wrote:
                              >[color=green]
                              > > Some draw a thick blue shadow (Mac IE 5) which is terribly ugly[/color][/color]
                              specially in[color=blue][color=green]
                              > > image maps.[/color]
                              >
                              > Then make some adjustments to your *own* browser. Don't interfere
                              > with usability features for your readers.
                              >[/color]

                              I would never try to interfere with a usability setting that a user has set.
                              But unfortunately Microsoft decided to interfere with my design by adding
                              lines around every clicked link by default. As a huge mayority of visual
                              browser users access links with a mouse this is a quite invasive thing.

                              People who prefer to use the keyboard to click links are somehow a special
                              interest group (I don't know anybody). Other than average users, special
                              interest groups always care about adjusting browser settings. So it would be
                              the correct way to provide a visual focus on links as a setting, not as a
                              default. (I only talk about links, it's different with form elements.)
                              [color=blue][color=green]
                              > > The javascript code to remove it is <a href="page.htm"
                              > > onFocus="if(thi s.blur)this.blu r()">.[/color]
                              >
                              > Another good reason for disabling javascript coming from untrusted
                              > sites, then.
                              >[color=green]
                              > > Now that you have read lots of arguments about this issue you can decide[/color][/color]
                              if[color=blue][color=green]
                              > > you want to use it or not.[/color]
                              >
                              > Please decide for yourself - but do *not* presume to decide for your
                              > readers.
                              >
                              > Stylesheet proposals are fine, within some bounds of what is
                              > reasonable; but sabotaging usability features of the user's browser
                              > ipso facto goes beyond the bounds of what is reasonable, in my view.[/color]

                              IMO web sites are made for several different reasons. Some are made mainly
                              for providing information, others for representation purposes, others even
                              stand for themselves as an art work. In my view the bounds of what is
                              reasonable is quite variable.

                              I appreciate this kind of discussion very much as sometimes I read arguments
                              I never thaught of before. Maybe the OP will now rather convince his client
                              of the reasonability of those borders he does not like. I am also convinced
                              that a good website must provide all the information regardless of your
                              browser settings. But specially if you have a client (who sees other pages
                              and wants his own to look better than his competitor's) it must also look
                              really good on an average browser with average settings. If you deny the
                              importance of representation you are not covering the whole of the web, but
                              only a part of it.


                              Comment

                              Working...