Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 20th, 2005, 11:45 PM
.rhavin
Guest
 
Posts: n/a
Default span with zero-width

I'm trying to put Accords above my Lyrics.
Unfortunately, it's all fine in Opera but
won't work in IE... any suggestions?
(thanx for help)

example-code:

<html><head>
</head><body>
<p style="line-height:150%">this is a Te<span
style="position:relative;
top:-0.6em;
text-align:center;
width:0px;
font-size:75%">C#m</span>st-line in a paragraph</p>
<div style="line-height:150%">Dies ist another Te<span
style="position:relative;
top:-0.6em;
text-align:center;
width:0px;
font-size:75%">C#m</span>st-line as DIV</div>
</body></html>

the final version (use Opera) should look like this:

http://www.shadowtec.de/cgi-bin/sw0....Fairytale:en-I
  #2  
Old July 20th, 2005, 11:45 PM
Jukka K. Korpela
Guest
 
Posts: n/a
Default Re: span with zero-width

rhavin@shadowtec.de (.rhavin) wrote:
[color=blue]
> I'm trying to put Accords above my Lyrics.
> Unfortunately, it's all fine in Opera but
> won't work in IE...[/color]

I think there's a simple way to achieve it on IE, but I don't know how to
combine it with a way that works on Opera.

IE supports a subset of Ruby markup, as defined in a W3C recommendation
(and included into XHTML 1.1). The default rendering uses a tiny font
and makes the annotation appear relatively far from the base text, but
you can use e.g.

rt { font-size: 70%; font-family: Verdana;
vertical-align: -0.4em; }

and markup like

this is a <ruby><rb>Test-line</rb><rt>C#m</rt></ruby> in a paragraph

Disclaimer: The implementation of Ruby isn't very robust. Attempts to use
positioning on ruby annotations seems to result in a disaster, but
vertical-align can be used.

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

Bookmarks

Thread Tools

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles