HighDots Forums  

Style to indicate that popup info is available

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


Discuss Style to indicate that popup info is available in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Jukka K. Korpela
 
Posts: n/a

Default Style to indicate that popup info is available - 08-06-2004 , 03:00 PM






(Discussion started in c.i.w.a.h. under Subject "image alt style pop up
for text", now changed to discussing the use of a title="..." attribute
to create a popup info text, and how to make it obvious to users that
there _is_ some info available.)

Neal <neal413 (AT) yahoo (DOT) com> wrote:

Quote:
On Fri, 6 Aug 2004 16:09:39 +0100, Alan J. Flavell
flavell (AT) ph (DOT) gla.ac.uk> wrote:

A dotted box seems to be a fairly conventional clue. I'm not sure
I can think of a better one.
I hadn't heard of the convention before, but it sounds reasonable.

Quote:
I'd use just a dotted underline.
I guess you mean a dotted bottom border. I don't know of any way, in HTML
or CSS as currently specified and generally implemented, to create a
dotted underline proper. But bottom borders can be used to simulate them.
(They are still different beasts. Underlining is at the baseline level,
or just a little lower, whereas bottom border is below the element as a
whole, which means that it's below all descenders.)

But a dotted bottom border is some browsers' default rendering of <abbr>
and <acronym> elements. This may cause confusion: users accustomed to
such rendering might get the correct clue "there's info available, if you
move the pointer over this piece of text" - but perhaps also the
incorrect clue "this is an abbreviation or an acronym". Besides, people
who are _not_ familiar with such rendering might assume that the border
is some variation of _link_ underlining.

Quote:
Left and right margins on inline
elements get weird when wrapped.
I wonder what you mean by such effects. Rather, the top and bottom border
might be disturbing by making adjacent text less readable and even partly
covering it - or borders for other elements.

But there are other problems. Using just e.g.

..titled { border: dotted black thin; }

(together with class="titled" for each element that has title="..."; yes,
we would like to be able to use just a [title] selector, but let's get
real) would make the text inside virtually hit the left and right border,
so we need some left and right padding. Moreover, the border is often
_too_ noticeable, drawing too much attention. Changing the color to some
shade of grey would help a little, but probably not enough. Making it 1px
instead of thin would appear to be natural, though naturally px values
should be avoided (a 1px border looks ridiculous when the font size is
very large, say 60px). More importantly, IE does not support a 1px dotted
border but makes it dashed. Would this be acceptable?

We might also make the border color different from text color, to avoid
any undesired effect on text legibility (especially when the border
becomes dashed - a dash might look too much like an "i" or "l").

So what I would currenly use is

@media screen {
..titled { border: dotted #090 1px;
padding: 0 0.1em; } }

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html



Reply With Quote
  #2  
Old   
Mad Bad Rabbit
 
Posts: n/a

Default Re: Style to indicate that popup info is available - 08-06-2004 , 10:41 PM






"Jukka K. Korpela" <jkorpela (AT) cs (DOT) tut.fi> wrote:

Quote:
(Discussion started in c.i.w.a.h. under Subject "image alt style pop
up for text", now changed to discussing the use of a title="..."
attribute to create a popup info text, and how to make it obvious to
users that there _is_ some info available.)
What about a span with text "ⓘ Info", styled as white letters
on blue background with a thin solid black border? That ought to be
easy enough to spot...

--
Quote:
;K

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

Default Re: Style to indicate that popup info is available - 08-07-2004 , 11:19 AM



Mad Bad Rabbit <madbadrabbit (AT) yahoo (DOT) com> wrote:

Quote:
What about a span with text "ⓘ Info", styled as white letters
on blue background with a thin solid black border? That ought to be
easy enough to spot...
I'm afraid you might be (half) serious. First, using &#bignumber;
references always causes problems, and I think you need a better reason
to invoke them. (How many speech browsers can speak it out? How many
fonts commonly available contain it.) Second, your approach means extra
markup. Third, both the character and the word indicate just
'information', typically used to identify an information desk where one
can ask just about anything. It's hardly a universally recognized symbol
for 'some extra hint available'.

--
Yucca, http://www.cs.tut.fi/~jkorpela/


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.