C
Curtis
We're in the final stages of writing a markup language. We
included a macro feature, which also turned out to be a
handy way to style elements like paragraphs and such.
In the PHP code we have a <p ... style=\"==para==\"
If we wish to style a particular paragraph, we just define a
macro:
..==para==width: 50%; padding: 10px; color: navy;
and so forth. It applies to all paragraphs until we clear
it:
..==para==
whereupon the subsequent paragraphs are styled by the
default CSS file. This is for advanced users, and CSS syntax
is about as clean as they come, so why not?
So here's the problem: today we're finishing the code for
links, images, etc. Images are a big deal for this
application, and **one vital feature is the mouseover ALT
text.**
We have it in the <IMG ... ALT="Witty description" of
course.
If we embed a macro into here, though, like <IMG ...
ALT="Witty description" ==img== we're forced to use a syntax
different from CSS, equals symbols instead of colons, for
example.
This mixed syntax is undersirable from a user perspective.
We can display an image in a <div, which would permit us to
use CSS syntax to manipulate, but is there any
non-Javascript way to get a mouseover ALT message?
If not, or if displaying images with <div and CSS is
cross-browser flakey upon closer scrutiny, we're prepared to
just translate CSS-style text for the image into the HTML
<img syntax and go with the <img tag.
Feedback and suggestions most definitely appreciated.
--
Curtis
Visit We the Thinking
www.wethethinking.com
An online magazine/forum
devoted to philosophical
thought.
included a macro feature, which also turned out to be a
handy way to style elements like paragraphs and such.
In the PHP code we have a <p ... style=\"==para==\"
If we wish to style a particular paragraph, we just define a
macro:
..==para==width: 50%; padding: 10px; color: navy;
and so forth. It applies to all paragraphs until we clear
it:
..==para==
whereupon the subsequent paragraphs are styled by the
default CSS file. This is for advanced users, and CSS syntax
is about as clean as they come, so why not?
So here's the problem: today we're finishing the code for
links, images, etc. Images are a big deal for this
application, and **one vital feature is the mouseover ALT
text.**
We have it in the <IMG ... ALT="Witty description" of
course.
If we embed a macro into here, though, like <IMG ...
ALT="Witty description" ==img== we're forced to use a syntax
different from CSS, equals symbols instead of colons, for
example.
This mixed syntax is undersirable from a user perspective.
We can display an image in a <div, which would permit us to
use CSS syntax to manipulate, but is there any
non-Javascript way to get a mouseover ALT message?
If not, or if displaying images with <div and CSS is
cross-browser flakey upon closer scrutiny, we're prepared to
just translate CSS-style text for the image into the HTML
<img syntax and go with the <img tag.
Feedback and suggestions most definitely appreciated.
--
Curtis
Visit We the Thinking
www.wethethinking.com
An online magazine/forum
devoted to philosophical
thought.