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 indistinguishable 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.
www.example.com/someSecretLogin.php
Or have the management pages within a password protected folder
www.example.com/passwordRequired/dbManager.php
>
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="someOtherClass" href="http://www.example.com">Will not be
effected</a>
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com