Posted by dorayme on 12/22/07 23:53
In article
<26aff379-bb0a-4515-b0c0-fd40bf193ba8@d21g2000prf.googlegroups.co
m>,
jodleren <sonnich@hot.ee> wrote:
> Hi
>
> I have this (see code below).
> Point: I want the bar to be aligned in the middle of the text, even
> when with superscript.
> The problem is, that the content in the 2nd <td> is top aligned at all
> times.
>
> Superscript is somewhat higher than normal text, but the following ts
> does not align as I want it to. Can anyone help me here?
>
> I have a dummy gif 14 pixels high 1 wide. Any gif can be used for
> testing.
>
> WBR
> Sonnich
>
> <table border="0" cellpspacing="0" cellpadding="0">
> <tr><td valign="middle"><b>Day</b> </td><td
> valign="middle"><b>Amount</b></td></tr>
> <tr><td valign="middle">December 22<sup>nd<sup> </td><td
> valign="middle">
> <p><img src="graphics/bar.gif" height="14" width="125" alt="">
> (125)</p>
> </td></tr>
> <tr><td valign="middle">December 21<sup>st<sup> </td><td
> valign="middle">
> <p><img src="graphics/bar.gif" height="14" width="33" alt="">
> (33)</p>
> </tr></table>
> </td></tr>
> </table>
Recheck your mark up here.
Is this the markup you want to know something about:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Title</title>
</head>
<body>
<table cellspacing="0" cellpadding="0">
<tr>
<td valign="middle"><strong>Day</strong> </td>
<td valign="middle"><strong>Amount</strong></td>
</tr>
<tr>
<td valign="middle">December
22<sup>nd</sup> </td>
<td valign="middle">
<p><img src="crimson.png" height="14" width="125"
alt=""> (125)</p>
</td>
</tr>
<tr>
<td valign="middle">December
21<sup>st</sup> </td>
<td valign="middle">
<p><img src="crimson.png" height="14" width="33"
alt=""> (33)</p>
</td>
</tr>
</table>
</body>
</html>
?
What?
--
dorayme
[Back to original message]
|