471,599 Members | 1,038 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Redefine <a>

Hello,

Is it possible to define the color of an a tag when it is disabled?
<a disabled="disabled" class="PageNavigation">
&lt;
</a>

Thanks,
Miguel
Nov 21 '07 #1
4 1664
shapper wrote:
Hello,

Is it possible to define the color of an a tag when it is disabled?
<a disabled="disabled" class="PageNavigation">
&lt;
</a>
The A tag doesn't have a "disabled" attribute.
Nov 21 '07 #2
In article <5q************@mid.individual.net>,
Harlan Messinger <hm*******************@comcast.netwrote:
shapper wrote:
Hello,

Is it possible to define the color of an a tag when it is disabled?
<a disabled="disabled" class="PageNavigation">
&lt;
</a>

The A tag doesn't have a "disabled" attribute.
OP should look up disabled (html) or diabled="disabled" (xhtml)
for inputs and a few other things... make some experiments and
see the effect of disabling text, e.g, in text boxes in different
browsers. You can style the text in the proper contexts.

--
dorayme
Nov 21 '07 #3
Scripsit shapper:
Is it possible to define the color of an a tag when it is disabled?
<a disabled="disabled" class="PageNavigation">
&lt;
</a>
Wrong approach. You can't just make things up as you go, inventing
attributes and whatever. Use whatever authoring tools you are using to
create pages so that a page does not contain a link that is not supposed
to be a link.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/

Nov 21 '07 #4
On Wed, 21 Nov 2007 03:11:46 +0100, shapper <md*****@gmail.comwrote:
Is it possible to define the color of an a tag when it is disabled?
<a disabled="disabled" class="PageNavigation">
&lt;
</a>
As others have mentioned, there's no 'disabled' attribute for a.

However, more general: in CSS3 there are attribute selectors
(<http://www.w3.org/TR/css3-selectors/#attribute-selectors>). Not that
widely supported though, so you can't rely on it yet. Just something to
remember for the future.
--
Rik Wasmus
Nov 21 '07 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Michael Bane | last post: by
2 posts views Thread by Donald Firesmith | last post: by
1 post views Thread by JezB | last post: by
3 posts views Thread by ajay2552 | last post: by
2 posts views Thread by XIAOLAOHU | last post: by
reply views Thread by Anwar ali | last post: by

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.