Table centers in some cases...

J

jodleren

Hi

I have a strange behaviour with the following code. In some cases, in
IE, the table centers - the text in paragraphs before and after are
aligned to the left, but the table is centered, so I get a small table
in the middle... for some reasons, this happens in both IE6 and
firefox... is there anyway I can force the table to the right?

WBR
Sonnich

<p>
<font face="Arial">Tere</font>
</p>
<p align="left">
<table>
<tr>
<td>
<font face="Arial">Kolmapäev&nbsp;&nbsp;</font>
</td>
<td>
<font face="Arial">TK</font>
</td>
</tr>
<tr>...
 
J

Jukka K. Korpela

jodleren said:
I have a strange behaviour with the following code.

It's a fragment of poorly written and even syntactically malformed code.
In some cases, in IE, the table centers

Maybe. You need to post URLs of demo pages to have any useful discussion
started.
is there anyway I can force

No.
 
D

dorayme

jodleren said:
Hi

I have a strange behaviour with the following code. In some cases, in
IE, the table centers - the text in paragraphs before and after are
aligned to the left, but the table is centered, so I get a small table
in the middle... for some reasons, this happens in both IE6 and
firefox... is there anyway I can force the table to the right?

WBR
Sonnich

<p>
<font face="Arial">Tere</font>
</p>
<p align="left">
<table>
<tr>
<td>
<font face="Arial">Kolmapäev&nbsp;&nbsp;</font>
</td>
<td>
<font face="Arial">TK</font>
</td>
</tr>
<tr>...

Don't put a table in a paragraph, make a proper URL with a strict
doctype, validate it and then ask detailed questions about the
validation errors...

You can float a table right.

<table style="float: right;">

You can make sure the text in the cells are left by

<td style="text-align: left;">

Of course, the right thing to do is to put such styles in a set of
instructions in the head or in a separate stylesheet and not inline.

Perhaps you might find:

<http://htmldog.com/guides/htmlbeginner/>

and

http://htmldog.com/guides/cssbeginner/

helpful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top