faqts : Computers : Internet : Web : CSS

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

6 of 16 people (38%) answered Yes
Recently 4 of 10 people (40%) answered Yes

Entry

When td declared text-align : center, NN will put the whole table to left only, what to do ?
When td declared text-align : center, NN will put the whole table to left only, what to do ?

Feb 26th, 2001 11:41
Ben Gordon, Mojzis Stupka,


This is a problem that I have not encountered but either one of these 
should work in both browsers.

<html>
<head><title>Border & Margin Test</title>
<style>

td {text-align: center; font-size: 24px;}
</style>
</head>
<body>
<table summary="" border="3">
<tr>
<td>add text here if this were very long</td>
</tr><tr>
<td>and this short</td>
</table>
</body>
</html>
or
<html>
<head>
<title>Border & Margin Test</title>
</head>
<body>

<table summary="" border="3">
<tr>
<td style="text-align: center;">add text here if this were very 
long</td>
</tr><tr>
<td>and this short</td>
</table>
</body>
</html>