Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Table centers in some cases...

Reply
Thread Tools

Table centers in some cases...

 
 
jodleren
Guest
Posts: n/a
 
      10-08-2008
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>...
 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      10-08-2008
jodleren wrote:

> 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.

--
Yucca, http://www.cs.tut.fi/~jkorpela/

 
Reply With Quote
 
 
 
 
dorayme
Guest
Posts: n/a
 
      10-08-2008
In article
<b4341c4f-6cb8-4c48-9c6f->,
jodleren <> wrote:

> 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.

--
dorayme
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Security Operations Centers Gayle Finan Microsoft Certification 1 06-07-2004 01:25 AM
test centers chris MCSD 2 04-28-2004 12:35 AM
Re: Exam Centers Dieter Microsoft Certification 0 09-22-2003 10:19 AM
Re: Exam Centers James D. Murray Microsoft Certification 0 09-11-2003 10:32 PM
Re: tell about mcsd certificate coaching centers msnews.microsoft.com MCSD 0 09-01-2003 07:23 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57