Styling "Hidden" Anchors?

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

    Styling "Hidden" Anchors?


    I have a "hidden" anchor in the body of a doc. By "hidden," I mean that
    the contained text of the anchor is indistinguishab le from the surrounding
    text, the text contained by its parent/ancestor element, which may or may
    not be the case if the cursor hovers over the anchor text.

    [NOTE: I use it to link to a page that provides a login interface to a
    database for me to maintain the documents at the web site.]

    Not all anchors in the body are changed however.

    So I put an 'id' attribute to identify the "hidden" anchor (if I have more
    later on, I will use 'class' attribute).

    If I have used a selector 'a' (includes pseudo-classes) to specify special
    font/color properties, then how can I get the special (id'ed) anchor to
    INHERIT whatever the font/color is of the text surrounding it
    (parent/ancestor font/color properties), without changing the font/color
    properties of anchors not specially id'ed/class'ed?

    Tesekkur ederim
  • Jonathan N. Little

    #2
    Re: Styling "Hidden&qu ot; Anchors?

    Patient Guy wrote:
    I have a "hidden" anchor in the body of a doc. By "hidden," I mean that
    the contained text of the anchor is indistinguishab le from the surrounding
    text, the text contained by its parent/ancestor element, which may or may
    not be the case if the cursor hovers over the anchor text.
    >
    [NOTE: I use it to link to a page that provides a login interface to a
    database for me to maintain the documents at the web site.]
    Okay first of all this is a bad idea. Mainly because it is in effective
    as a "security" measure because it can be so easily be defeated. If it
    keep hitting the tab key the "hidden" link will appear. Also all one has
    to do to find your link is disable CSS!

    Better idea is to NOT publish the link at all and just bookmark it on
    "your" browser.



    Or have the management pages within a password protected folder


    >
    Not all anchors in the body are changed however.
    >
    So I put an 'id' attribute to identify the "hidden" anchor (if I have more
    later on, I will use 'class' attribute).
    >
    If I have used a selector 'a' (includes pseudo-classes) to specify special
    font/color properties, then how can I get the special (id'ed) anchor to
    INHERIT whatever the font/color is of the text surrounding it
    (parent/ancestor font/color properties), without changing the font/color
    properties of anchors not specially id'ed/class'ed?
    >
    It call using selectors

    a.someClass { ...properties }
    a#someID { ...properties }


    <a class="someOthe rClass" href="http://www.example.com ">Will not be
    effected</a>

    --
    Take care,

    Jonathan
    -------------------
    LITTLE WORKS STUDIO

    Comment

    Working...