td align="right" and Mozilla
Moderator: General Moderators
td align="right" and Mozilla
Hey,
Anyone know how to get it so that <td align="right">RIGHT TEXT</td> will work when viewed in mozilla?
thanks
Anyone know how to get it so that <td align="right">RIGHT TEXT</td> will work when viewed in mozilla?
thanks
- scorphus
- Forum Regular
- Posts: 589
- Joined: Fri May 09, 2003 11:53 pm
- Location: Belo Horizonte, Brazil
- Contact:
Try this and see what you get:
Regards,
Scorphus.
Code: Select all
<table border="1">
<tr>
<td align="right">RIGHT TEXT</td>
</tr>
<tr>
<td align="right">RIGHT TEXT (LONGER TEXT)</td>
</tr>
</table>Scorphus.
I currently have:
Doesn't seem much diff except that new table row.
Code: Select all
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td>LEFT TEXT</td>
<td align="right">RIGHT TEXT</td>
</tr>
</table>- scorphus
- Forum Regular
- Posts: 589
- Joined: Fri May 09, 2003 11:53 pm
- Location: Belo Horizonte, Brazil
- Contact:
Just a longer td content, so you can see the right alignment effect.nigma wrote:...Doesn't seem much diff except that new table row.
This piece of code worked in Mozilla:
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Test</title>
<style>
table {
display : inline;
}
</style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td>Test, just a test</td>
<td align="right">Testa gain</td>
</tr>
<tr>
<td align="right">Test and test</td>
<td>It's all about test</td>
</tr>
</table>
</body>
</html>Scorphus.
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>nigma @ nigmaNET</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="style.css" />
</head>
<body>
<div id="container">
<h1 class="pageheader"><span>NigmaNET</span></h1>
<div id="navigation"><a href="#">BLOG</a><a href="#">Contact</a></div>
<div id="mainContent"> <br />
<p>Here is a test paragraph.<p>
</div>
<div id="footer">
<table width="100%" border="0" cellpadding="0" cellspacing="1"><tr><td>
© 2003 Nigma. All Rights Reserved.</td><td align="right">
<span style="text-align: right; margin-left: 5px">Design by <a href="http://www.urbanchaos.net">www.urbanchaos.net</a></td></tr></table>
</div>
</div>
</div>
</body>
</html>Code: Select all
#footer table { display: inline }- scorphus
- Forum Regular
- Posts: 589
- Joined: Fri May 09, 2003 11:53 pm
- Location: Belo Horizonte, Brazil
- Contact:
I'm getting things right-aligned here, using Mozilla Firebird 0.6
I've added one row to the end of the table:
The text is right-aligned but it expands to the entire <td> so you don't see the alignment.
No changes were made to the CSS...
Hope that helps.
Cheers,
Scorphus.
I've added one row to the end of the table:
Code: Select all
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" >
<head>
<title>nigma @ nigmaNET</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="style2.css" />
</head>
<body>
<div id="container">
<h1 class="pageheader"><span>NigmaNET</span></h1>
<div id="navigation"><a href="#">BLOG</a><a href="#">Contact</a></div>
<div id="mainContent"> <br />
<p>Here is a test paragraph.<p>
</div>
<div id="footer">
<table width="100%" border="1" cellpadding="0" cellspacing="1"><tr><td>
© 2003 Nigma. All Rights Reserved.</td><td align="right">
<span style="text-align: right; margin-left: 5px">Design by <a href="http://www.urbanchaos.net">www.urbanchaos.net</a></td></tr><tr><td>
...All Rights Reserved.</td><td align="right">
<span style="text-align: right; margin-left: 5px">Design by...</td></tr></table>
</div>
</div>
</div>
</body>
</html>No changes were made to the CSS...
Hope that helps.
Cheers,
Scorphus.
