473,462 Members | 1,243 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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
Jul 20 '05 #1
1 3549
rh****@shadowtec.de (.rhavin) wrote:
I'm trying to put Accords above my Lyrics.
Unfortunately, it's all fine in Opera but
won't work in IE...


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/
Jul 20 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: deko | last post by:
How to change a link's color based on a php variable? I have a number of links on a page: <p><a href="page1.php">Page 1</a></p> <p><a href="page2.php">Page 2</a></p> <p><a...
13
by: Mikko Ohtamaa | last post by:
From XML specification: The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. (This means that <foo></foo> is equal to...
23
by: Mikko Ohtamaa | last post by:
From XML specification: The representation of an empty element is either a start-tag immediately followed by an end-tag, or an empty-element tag. (This means that <foo></foo> is equal to...
5
by: Kathryn | last post by:
Good morning! I am having a problem with a span. I have items, of which I only want to show the first X characters on the screen. If the user prints the page, I want the entire item to print....
26
by: johkar | last post by:
I need to cancel the link and execute a function onclick of all the links within the span tag which has a class of "container" assigned. There will be only one span tag with this class applied. ...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.