HighDots Forums  

Adjust style on ABBR or ACRONYM alternate text

alt.html.tags alt.html.tags


Discuss Adjust style on ABBR or ACRONYM alternate text in the alt.html.tags forum.



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

Default Adjust style on ABBR or ACRONYM alternate text - 05-11-2005 , 01:47 PM






I am using the ACRONYM tag to provide an explanation of codes within my
application. Example:

<p>The circuit <acronym title="Circuit P123T: Picton SS to Telebary
SS 345KV">P123T</acronym> is out
of service from 13:00 to 15:00 today</p>.

I would prefer a fancy balloon tip, but this allows me to store and retrieve
the text directly in a database table, and avoid having to add any
additional setup text to create any invisible balloon text. (Unless there is
another way).

I would like to change the style of the alternate text that appears, such as
increasing its font size and background color. Is there a way to do this as
CSS or in JavaScript ?

Thanks,
Jarson (jarson from sygration, that's a dot com company if you would like to
email me)



Reply With Quote
  #2  
Old   
RobG
 
Posts: n/a

Default Re: Adjust style on ABBR or ACRONYM alternate text - 05-11-2005 , 07:37 PM






Jarson wrote:
Quote:
I am using the ACRONYM tag to provide an explanation of codes within my
application. Example:

p>The circuit <acronym title="Circuit P123T: Picton SS to Telebary
SS 345KV">P123T</acronym> is out
of service from 13:00 to 15:00 today</p>.

I would prefer a fancy balloon tip, but this allows me to store and retrieve
the text directly in a database table, and avoid having to add any
additional setup text to create any invisible balloon text. (Unless there is
another way).

I would like to change the style of the alternate text that appears, such as
increasing its font size and background color. Is there a way to do this as
CSS or in JavaScript ?

I'm pretty sure that amongst the tooltips at the link below there is
one that is attached when the page loads and works on the title or alt
text of whatever elements you choose to attach it to.

Users without JavaScript see their browsers default 'tooltip', those
with JavaScript see the enhanced, styled version.

<URL:http://www.walterzorn.com/tooltip/tooltip_e.htm>


Post again if you can't find what you want.


--
Rob


Reply With Quote
  #3  
Old   
Leif K-Brooks
 
Posts: n/a

Default Re: Adjust style on ABBR or ACRONYM alternate text - 05-11-2005 , 09:27 PM



Jarson wrote:
Quote:
acronym title="Circuit P123T: Picton SS to Telebary SS
345KV">P123T</acronym
In what way is that an acronym? Use <dfn> or a semantically meaningless
element like <span> instead.

(Followups trimmed.)


Reply With Quote
  #4  
Old   
Jarson
 
Posts: n/a

Default Re: Adjust style on ABBR or ACRONYM alternate text - 05-12-2005 , 12:21 PM



It is a semantic argument debating which tag best fits this purpose. True,
is not an Acronym but it also isn't a definition or an abbreviation.
However, I would surely switch to another tag if it provided a better
solution. None of them seem to provide a way to modify the style of their
title attribute.

Jarson

"Leif K-Brooks" <eurleif (AT) ecritters (DOT) biz> wrote

Quote:
Jarson wrote:
acronym title="Circuit P123T: Picton SS to Telebary SS
345KV">P123T</acronym

In what way is that an acronym? Use <dfn> or a semantically meaningless
element like <span> instead.

(Followups trimmed.)



Reply With Quote
  #5  
Old   
Adrienne
 
Posts: n/a

Default Re: Adjust style on ABBR or ACRONYM alternate text - 05-12-2005 , 01:40 PM



Gazing into my crystal ball I observed "Jarson" <jarsonk (AT) nospam (DOT) com>
writing in news:czrge.30173$XX1.560149 (AT) news20 (DOT) bellglobal.com:

Quote:
I am using the ACRONYM tag to provide an explanation of codes within my
application. Example:

p>The circuit <acronym title="Circuit P123T: Picton SS to
Telebary
SS 345KV">P123T</acronym> is out
of service from 13:00 to 15:00 today</p>.

I would prefer a fancy balloon tip, but this allows me to store and
retrieve the text directly in a database table, and avoid having to add
any additional setup text to create any invisible balloon text. (Unless
there is another way).

I would like to change the style of the alternate text that appears,
such as increasing its font size and background color. Is there a way
to do this as CSS or in JavaScript ?

If it is important that users know what the description is, then I would
show both the part number AND the description. Since IE does not render
any hint on the ACRONYM or ABBR elements, unless they are specifically
styled, the user would not know to mouse over anyway.

***
abbr, acronym {border-bottom:1px dashed #c0c0c0;} simulates Opera and
Firefoxes rendering of those elements for IE.
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


Reply With Quote
  #6  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Adjust style on ABBR or ACRONYM alternate text - 05-12-2005 , 02:05 PM



Jarson wrote:
Quote:
It is a semantic argument debating which tag best fits this purpose. True,
is not an Acronym
...so then there is no semantic argument. It is not an acronym.

Quote:
but it also isn't a definition or an abbreviation.
However, I would surely switch to another tag if it provided a better
solution. None of them seem to provide a way to modify the style of their
title attribute.
Why not use a simple <span> as Leif suggested?

Please don't top-post.

--
-bts
-This space intentionally left blank.


Reply With Quote
  #7  
Old   
Leif K-Brooks
 
Posts: n/a

Default Re: Adjust style on ABBR or ACRONYM alternate text - 05-12-2005 , 02:25 PM



Adrienne wrote:
Quote:
abbr, acronym {border-bottom:1px dashed #c0c0c0;} simulates Opera and
Firefoxes rendering of those elements for IE.
Except that IE has (IIRC) absolutely no support for ABBR. It even
removes it from the DOM.


Reply With Quote
  #8  
Old   
Jarson
 
Posts: n/a

Default Re: Adjust style on ABBR or ACRONYM alternate text - 05-12-2005 , 10:54 PM



It is a semantic argument in the context that it is missing the point of the
question. My question is whether or not it is possible to alter the style
of the title attribute (and how). Sorry if I wasn't clear on that, and I
have just never seen a way of doing it. Any tag that displays alternate
text would do find -- I think changing the alternate text's style would be
useful for many applications.

Thanks, Jarson

"Beauregard T. Shagnasty" <a.nony.mous (AT) example (DOT) invalid> wrote

Quote:
Jarson wrote:
It is a semantic argument debating which tag best fits this purpose.
True, is not an Acronym

..so then there is no semantic argument. It is not an acronym.

but it also isn't a definition or an abbreviation. However, I would
surely switch to another tag if it provided a better solution. None of
them seem to provide a way to modify the style of their title attribute.

Why not use a simple <span> as Leif suggested?

Please don't top-post.

--
-bts
-This space intentionally left blank.



Reply With Quote
  #9  
Old   
Beauregard T. Shagnasty
 
Posts: n/a

Default Re: Adjust style on ABBR or ACRONYM alternate text - 05-13-2005 , 09:57 AM



Jarson wrote:

Please don't top-post.
http://oakroadsystems.com/genl/unice.htm#upside

Quote:
It is a semantic argument in the context that it is missing the
point of the question. My question is whether or not it is
possible to alter the style of the title attribute (and how). Sorry
if I wasn't clear on that, and I have just never seen a way of
doing it. Any tag that displays alternate text would do find -- I
think changing the alternate text's style would be useful for many
applications.
The display of the standard title attribute can't be changed, as far
as I know. Some folks have written JavaScript "popups" that resemble
the tooltips that the title attribute uses, and they are customizable,
of course. Since I don't care for them, I have no references.

Your use of the words "alternate text" above ... I hope you don't mean
the alt attribute, which should not be mucked with.

--
-bts
-This space intentionally left blank.


Reply With Quote
  #10  
Old   
Adrienne
 
Posts: n/a

Default Re: Adjust style on ABBR or ACRONYM alternate text - 05-13-2005 , 02:15 PM



Gazing into my crystal ball I observed Leif K-Brooks
<eurleif (AT) ecritters (DOT) biz> writing in news:LcNge.4966$Cz3.612761
@monger.newsread.com:

Quote:
Adrienne wrote:
abbr, acronym {border-bottom:1px dashed #c0c0c0;} simulates Opera and
Firefoxes rendering of those elements for IE.

Except that IE has (IIRC) absolutely no support for ABBR. It even
removes it from the DOM.

You're right. Another reason to hate that browser.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share


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 - 2009, Jelsoft Enterprises Ltd.