How to disable text selection? (css?)

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

    #16
    Re: How to disable text selection? (css?)

    In <f_MXb.186993$U %5.921536@attbi _s03> Brian <usenet3@juliet remblay.com.inv alid-remove-this-part> writes:[color=blue]
    >kj wrote:[color=green]
    >> It's amusing to see a misdirected usenet overreaction in full
    >> bloom... :)[/color][/color]
    [color=blue]
    >Since you didn't quote any of the message that you're replying to, I
    >have no idea what you're talking about.[/color]

    Awwwwwww...... Go to mommy--she'll help you.


    kj, if all you want is a flat button try this:

    <html><head><ti tle>button test</title>
    <style type="text/css">
    input.flat_butt on {
    border-style: none;
    background-color: transparent
    }
    </style>
    </head>
    <body>
    <form action=""><p>
    <input type="button" class="flat_but ton" value="can't select me">
    </p></form>
    </body></html>

    For more info, check this out:



    bill

    P.S. Don't let the "church ladies" get to ya!

    Comment

    • Brian

      #17
      Re: How to disable text selection? (css?)

      bill wrote:[color=blue]
      >
      > Awwwwwww...... Go to mommy--she'll help you.[/color]

      Where'd that button go? Oh, there it is. *plonk*

      --
      Brian (follow directions in my address to email me)


      Comment

      • bill

        #18
        Re: How to disable text selection? (css?)

        In <l8QXb.188858$U %5.941017@attbi _s03> Brian <usenet3@juliet remblay.com.inv alid-remove-this-part> writes:
        [color=blue]
        >bill wrote:[color=green]
        >>
        >> Awwwwwww...... Go to mommy--she'll help you.[/color][/color]
        [color=blue]
        >Where'd that button go? Oh, there it is. *plonk*[/color]

        that hurt

        Comment

        • Daniel R. Tobias

          #19
          Re: How to disable text selection? (css?)

          kj wrote:[color=blue]
          > I just don't want certain clickable text (headers in a table, if
          > you must know) to change appearance if the user accidentally drags
          > the mouse over it as they click on it.[/color]

          It's hardly the responsibility of the site author to "protect" the user
          against the consequences (aesthetic or otherwise) of accidentally (or on
          purpose) using standard browser features and having them cause the
          standard result.

          --
          == Dan ==
          Dan's Mail Format Site: http://mailformat.dan.info/
          Dan's Web Tips: http://webtips.dan.info/
          Dan's Domain Site: http://domains.dan.info/

          Comment

          • Stephen Poley

            #20
            Re: How to disable text selection? (css?)

            On Sun, 15 Feb 2004 18:32:28 +0000 (UTC), bill <bill_knight2@y ahoo.com>
            wrote:
            [color=blue][color=green]
            >>kj wrote:[color=darkred]
            >>> It's amusing to see a misdirected usenet overreaction in full
            >>> bloom... :)[/color][/color][/color]

            People responded to what you asked. You can hardly blame usenauts for
            not knowing that you meant to ask something else.

            [color=blue]
            >kj, if all you want is a flat button try this:
            >
            ><html><head><t itle>button test</title>
            ><style type="text/css">
            >input.flat_but ton {
            > border-style: none;
            > background-color: transparent
            >}
            ></style>
            ></head>
            ><body>
            ><form action=""><p>
            ><input type="button" class="flat_but ton" value="can't select me">
            ></p></form>
            ></body></html>[/color]

            In IE that results in text which has no indication at all that it is
            clickable, and so the button is pointless. Welcome to Mystery Meat.

            If you're wanting to suppress the hover effect, a better approach is
            something like:
            input.my_button { background-color: #BBBBBB; }
            input.my_button :hover { background-color: #BBBBBB; }

            But it's a bad idea to use buttons for navigation anyway (if that was
            the original idea) because they are unusable for people without
            Javascript.
            [color=blue]
            >P.S. Don't let the "church ladies" get to ya![/color]

            Meaning what? Ignore people who are trying to achieve usable, accessible
            web-pages?

            --
            Stephen Poley


            Comment

            • Eric Bohlman

              #21
              Re: How to disable text selection? (css?)

              Stephen Poley <sbpoleySpicedH amTrap@xs4all.n l> wrote in
              news:d92130ttus k62v82ksq0tbaqn b2cgcpo1u@4ax.c om:
              [color=blue]
              > But it's a bad idea to use buttons for navigation anyway (if that was
              > the original idea) because they are unusable for people without
              > Javascript.[/color]

              Of course, you can make an ordinary link *look* like a button, and *act*
              like one from the user's point of view, with the right CSS.

              Comment

              Working...