Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / CSS / August 2008



Tip: Looking for answers? Try searching our database.

Styling "Hidden" Anchors?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Patient Guy - 25 Aug 2008 16:52 GMT
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.]

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 - 25 Aug 2008 17:11 GMT
> 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
[quoted text clipped - 3 lines]
> [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.
>
[quoted text clipped - 6 lines]
> (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>

Signature

Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.