Click here to get back home

Problems with IE

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Problems with IE miguel.mateo 02-19-2008
---> Re: Problems with IE Harlan Messinge...02-19-2008
Get Chitika Premium
Posted by Harlan Messinger on February 19, 2008, 9:25 am
Please log in for more thread options
C A Upsdell wrote:
> Harlan Messinger wrote:
>
>>> Stop specifying a table width of 100%. Don't specify a width at all.
>>> Right now you specify 100%, which makes the browser make a table the
>>> width of the page, which is much wider than the columns you have
>>> defined, so the browser expands the widths of the columns.
>>
>> No, that's all right, because the first column is the only one for
>> which he's trying to specify the width, he's just doing it wrong. Once
>> he gets it right, the browser should allocate 160 pixels to the first
>> column and then allocate the remaining width to the other columns.
>
> Some browsers ignore the specified widths if the table is wider than its
> contents, though this is not as serious a problem as it used to be.

In my experience that's only if a width is specified for EACH column and
the total doesn't add up to the table's width. If at least one column
doesn't have its width specified then the table uses the unfixed
column(s) to allocate the space remaining after allocating space to the
fixed-width columns.

>>> Also, do style="width:160x; text-align:center;" to center the
>>> contents of that table cell.
>>
>> Don't tell him to use 160x!
>
> Typo :(

His. You just copied it. Don't feel so bad. :))

Posted by miguel.mateo on February 20, 2008, 3:28 am
Please log in for more thread options
Hi there, I finally found the solution in another forum ... a
stupidity of IE, but it may be worth to share it with you guys. The
new code is:

<html>
<body>
<table border=1 style="text-align:center;" width="100%">
<tr>
<td style="width:160px; text-align:center;">
<img alt="Greece 2004" src="http://upload.wikimedia.org/
wikipedia/commons/thumb/
6/62/%E2%82%AC2_commemorative_coin_Greece_2004.jpg/150px-
%E2%82%AC2_commemorative_coin_Greece_2004.jpg"/>
</td>
<td width="100%">Greece</td>
</tr>
<tr>
<td colspan="2">
Description: sdfksjd fsadjkfh alskdjfh asldkjfhas
dlkjfhasldkfj
aerluitqeriotu flvbadffgarlt qerlf gqw fgsadk jf hasgdkfj hsadkfg
</td>
</tr>
<tr>
<td style="width:160px; text-align:center;">
<img alt="Finland 2004" src="http://upload.wikimedia.org/
wikipedia/commons/thumb/a/ab/
%E2%82%AC2_commemorative_coin_Finland_2004.jpg/150px-
%E2%82%AC2_commemorative_coin_Finland_2004.jpg"/>
</td>
<td width="100%">Greece</td>
</tr>
<tr>
<td colspan="2">
Description:
</td>
</tr>
</table>
</body>
</html>

... you can notice the line <td width="100%">Greece</td> which
instructs explorer to use that particular cell to expand the whole
table to the width of the browser. Thanks for all of your answers.

And as a last note, for those of you who think that are teachers or
Gods in the matter, you should have it clear that not always your
suggestions and requests are right. In the free country where I live
in, we all have the right of saying and doing whatever we want to.
The reason why I am asking in this forum is because it is supposed to
be a forum visited by professional people, so the comments about
Wikipedia are nothing but crap ... and save your commands to people
telling them what to and what not do with their time!

Special thanks goes to Harlan Messinger (and those of you who REALLY
tried to help)!
SpiderMan

Posted by GTalbot on February 20, 2008, 10:54 pm
Please log in for more thread options
On 20 f=E9v, 03:28, miguel.ma...@gmail.com wrote:
> Hi there, I finally found the solution in another forum ... a
> stupidity of IE (...)

> for those of you who think that are teachers or
> Gods in the matter, you should have it clear that not always your
> suggestions and requests are right. In the free country where I live
> in, we all have the right of saying and doing whatever we want to.

SpiderMan,

Those who told you to first validate your markup code and first
validate CSS code gave you excellent feedback and good advices: a very
wide majority of professionals would have told you so and would have
done so themselves.

Those who told you to stop specifying a table width of 100% gave you
an excellent and very relevant suggestion.

Those who invited you to post an URL and not whole code have been
telling you to do what is best for you, for your webpage problem and
for you maximizing your chances of getting assistance and support for
*your* problem.

I sincerly believe you have been treated fairly and correctly here.

Why we won't help you
http://diveintomark.org/archives/2003/05/05/why_we_wont_help_you
"Validation may reveal your problem. Many cases of it works in one
browser but not another are caused by silly author errors. Typos like
missing attribute values (...)"

Regards, G=E9rard

Posted by Harlan Messinger on February 19, 2008, 6:49 am
Please log in for more thread options
miguel.mateo@gmail.com wrote:
> <td colspan="2">
>          Description: is a description that holds
>         </td>


Why are you using colspan="2" here? This is only meaningful when you
want the cell to span what, in at least one other row, is two columns.
If every row has colspan="2" in the td at this position, then it serves
no purpose.

Similar ThreadsPosted
problems tag img January 23, 2007, 8:43 am
Problems with iframe tag September 14, 2004, 6:24 pm
problems with JavaScript February 10, 2005, 5:32 pm
Google Bot problems? March 9, 2005, 3:03 pm
Problems with DOCTYPES April 1, 2005, 11:22 am
# giving me problems May 5, 2005, 7:11 am
Problems with Homesite 5 & SSL FTP June 2, 2005, 4:37 am
W3C Validation Problems June 25, 2005, 4:21 am
XHTML Problems July 3, 2005, 8:19 am
Frame problems... February 15, 2006, 12:08 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap