473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

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 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
Aug 25 '08 #1
1 2375
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
Aug 25 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Stone | last post by:
OK .. admittedly this is newbie dumb... Its a JAVA script in a FORM I have passed (successfully) the referring URL into my form page on loading.... <script language="JavaScript"><!-- //...
6
by: Saqib Ali | last post by:
I have created a slider using Javascript and html tables that generally works very well. As you move the "knob" to the right, a numeric value in an adjactent <INPUT type="text"> tag increases....
3
by: neverstill | last post by:
hi- I need to have an asp:TextBox that will allow me to set the type attribute to hidden. I can't seem to find a way to do this. Basically, I have a Wizard application that will show/hide...
3
by: Mike Labosh | last post by:
I'm a middle tier (dll / MTS / COM+ / Extensions) guy and I'm a bit rusty on the GUI part of ASP.NET I have a web form that a user uses to cycle through records in the DB to review unmatched...
2
by: SAL | last post by:
I have the following line of code in my Page_Load Event of my ASP.net page: txtExplanationofChange.Attributes.Add ("style","overflow :hidden"); which allows me to can turn off the Scrollbar of my...
7
by: parag1234567 | last post by:
Hi, I am dynamically generating a html file which will contain only <div> tags which contents are hidden from user( set by style="visibility:hidden") Now the next step is i am enabling some of...
1
by: mark | last post by:
Forgive me if this seems like a stupid question but I need help... I'm trying to do a simple online form that emails me the results from a few fields. Here is the code: <form...
1
by: msg2ajay | last post by:
hi, i am working on <div> i have to hide some part of the table. I am not able to hide that table part can anybady tell me where is the error. <html> <head> <script...
3
by: dba | last post by:
Without giving a lot of script at this time, I am having a problem with php and form input type="hidden". Problem is that the hidden variable displays last line from database query. Some code....
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.