HighDots Forums  

Redefine <a>

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Redefine <a> in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shapper
 
Posts: n/a

Default Redefine <a> - 11-20-2007 , 08:11 PM






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

Reply With Quote
  #2  
Old   
Harlan Messinger
 
Posts: n/a

Default Re: Redefine <a> - 11-20-2007 , 09:20 PM






shapper wrote:
Quote:
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.


Reply With Quote
  #3  
Old   
dorayme
 
Posts: n/a

Default Re: Redefine <a> - 11-20-2007 , 10:11 PM



In article <5qhmhkFuulgsU1 (AT) mid (DOT) individual.net>,
Harlan Messinger <hmessinger.removethis (AT) comcast (DOT) net> wrote:

Quote:
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


Reply With Quote
  #4  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Re: Redefine <a> - 11-20-2007 , 11:55 PM



Scripsit shapper:

Quote:
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/



Reply With Quote
  #5  
Old   
Rik Wasmus
 
Posts: n/a

Default Re: Redefine <a> - 11-21-2007 , 04:34 AM



On Wed, 21 Nov 2007 03:11:46 +0100, shapper <mdmoura (AT) gmail (DOT) com> wrote:
Quote:
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


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.