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 Jukka K. Korpela on February 19, 2008, 4:51 am
Please log in for more thread options
Scripsit miguel.mateo@gmail.com:

> Richard,

Are you talking to Richard the troll?

> FYI 2. The page I am trying to fix is
> http://en.wikipedia.org/wiki/%E2%82%AC2_commemorative_coins ... does
> that help? I bet you it does not!

It would have helped if you had told the URL a few rounds earlier. Now
the best advice is that you should read the Wikipedia instructions and
ask for help in the Wikipedia authors' forums. Wikipedia code is a mess,
and trying to throw in some CSS without bothering to learn the elements
of CSS syntax doesn't really make things any better.

Alternatively, do something useful instead of contributing to Wikipedia,
the worldwide supply of bogosity mixed with a large amount of factoids.

--
Jukka K. Korpela ("Yucca")
http://www.cs.tut.fi/~jkorpela/


Posted by Harlan Messinger on February 19, 2008, 6:44 am
Please log in for more thread options
miguel.mateo@gmail.com wrote:
> On Feb 19, 3:57 pm, miguel.ma...@gmail.com wrote:
>> On Feb 19, 3:27 pm, Harlan Messinger
>>
>>> miguel.ma...@gmail.com wrote:
>>>> I am trying to fix a weird problem and I have found no reason for the
>>>> miss behaviour of IE. The following code:
>>>> <html> <body> <center>
>>> The <center> tag is long since obsolete. Remove.
>>>> <table width="100%" border=1> <tr> <td>
>>> Use CSS for centering inline content in the cell: style="text-align:
>>> center;". (Better to use a <style> section or a separate CSS file.)
>>> ><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"/> </center> </td>
>>>> <td>Greece</td> </tr> <tr> <td colspan="2"> Description: is a
>>>> description that holds </td> </tr> <tr> <td style="width:160"
>>>> width=160>
>>> In CSS, you have to say 160 *what*. And when you do ("width: 160px;"),
>>> you don't also use the HTML width attribute.
>>>> <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"/> </center> </td>
>>>> <td>Greece</td> </tr> <tr> <td colspan="2"> Description: </td> </tr>
>>>> </table> </center> </body> </html>
>>>> Shows a table with some rows. I am trying to put the first cell to
>>>> 160 pixels and the image centered on it (image of 150 pixels) and I
>>>> find no way of doing it. Can somebody tell me what am I doing wrong?
>>>> Please change the code and try ...- Hide quoted text -
>>> - Show quoted text -
>> I changed the code based on your suggestions to:
>>
>> <html>
>> <body>
>> <table width="100%" border=1 style="text-align:center;">
>> <tr>
>> <td style="width:160x;">
[snip]

I said 160px ("px" = "pixels") and you just used 160x, which has no
meaning in CSS.

Posted by C A Upsdell on February 19, 2008, 3:06 am
Please log in for more thread options
miguel.mateo@gmail.com wrote:
> On Feb 19, 3:27 pm, Harlan Messinger
>> miguel.ma...@gmail.com wrote:
>>> I am trying to fix a weird problem and I have found no reason for the
>>> miss behaviour of IE. The following code:
>>> <html> <body> <center>
>> The <center> tag is long since obsolete. Remove.
>>
>>> <table width="100%" border=1> <tr> <td>
>> Use CSS for centering inline content in the cell: style="text-align:
>> center;". (Better to use a <style> section or a separate CSS file.)
>>
>> ><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"/> </center> </td>
>>> <td>Greece</td> </tr> <tr> <td colspan="2"> Description: is a
>>> description that holds </td> </tr> <tr> <td style="width:160"
>>> width=160>
>> In CSS, you have to say 160 *what*. And when you do ("width: 160px;"),
>> you don't also use the HTML width attribute.
>>
>>
>>
>>> <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"/> </center> </td>
>>> <td>Greece</td> </tr> <tr> <td colspan="2"> Description: </td> </tr>
>>> </table> </center> </body> </html>
>>> Shows a table with some rows. I am trying to put the first cell to
>>> 160 pixels and the image centered on it (image of 150 pixels) and I
>>> find no way of doing it. Can somebody tell me what am I doing wrong?
>>> Please change the code and try ...- Hide quoted text -
>> - Show quoted text -
>
> I changed the code based on your suggestions to:
>
> <html>
> <body>
> <table width="100%" border=1 style="text-align:center;">
> <tr>
> <td style="width:160x;">
> <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>Greece</td>
> </tr>
> <tr>
> <td colspan="2">
>          Description: is a description that holds
>         </td>
> </tr>
> <tr>
>         <td style="width:160x;">
>          <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>Greece</td>
> </tr>
> <tr>
>         <td colspan="2">
>          Description:
>         </td>
> </tr>
> </table>
> </body>
> </html>
>
> Still the first cells (where the images are hold) does not go to 160
> pixels, instead expands to way more. This does not happen If I remove
> the last word of the "description" content ... any idea?

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.

Also, do style="width:160x; text-align:center;" to center the contents
of that table cell.

Posted by Harlan Messinger on February 19, 2008, 6:47 am
Please log in for more thread options
C A Upsdell wrote:
> miguel.mateo@gmail.com wrote:
>> On Feb 19, 3:27 pm, Harlan Messinger
>>> miguel.ma...@gmail.com wrote:
>>>> I am trying to fix a weird problem and I have found no reason for the
>>>> miss behaviour of IE. The following code:
>>>> <html> <body> <center>
>>> The <center> tag is long since obsolete. Remove.
>>>
>>>> <table width="100%" border=1> <tr> <td>
>>> Use CSS for centering inline content in the cell: style="text-align:
>>> center;". (Better to use a <style> section or a separate CSS file.)
>>>
>>> ><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"/> </center> </td>
>>>> <td>Greece</td> </tr> <tr> <td colspan="2"> Description: is a
>>>> description that holds </td> </tr> <tr> <td style="width:160"
>>>> width=160>
>>> In CSS, you have to say 160 *what*. And when you do ("width: 160px;"),
>>> you don't also use the HTML width attribute.
>>>
>>>
>>>
>>>> <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"/> </center> </td>
>>>> <td>Greece</td> </tr> <tr> <td colspan="2"> Description: </td> </tr>
>>>> </table> </center> </body> </html>
>>>> Shows a table with some rows. I am trying to put the first cell to
>>>> 160 pixels and the image centered on it (image of 150 pixels) and I
>>>> find no way of doing it. Can somebody tell me what am I doing wrong?
>>>> Please change the code and try ...- Hide quoted text -
>>> - Show quoted text -
>>
>> I changed the code based on your suggestions to:
>>
>> <html>
>> <body>
>> <table width="100%" border=1 style="text-align:center;">
>> <tr>
>> <td style="width:160x;">
>> <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>Greece</td>
>> </tr>
>> <tr>
>> <td colspan="2">
>> Description: is a description that holds
>> </td>
>> </tr>
>> <tr>
>> <td style="width:160x;">
>> <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>Greece</td>
>> </tr>
>> <tr>
>> <td colspan="2">
>> Description:
>> </td>
>> </tr>
>> </table>
>> </body>
>> </html>
>>
>> Still the first cells (where the images are hold) does not go to 160
>> pixels, instead expands to way more. This does not happen If I remove
>> the last word of the "description" content ... any idea?
>
> 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.

>
> Also, do style="width:160x; text-align:center;" to center the contents
> of that table cell.

Don't tell him to use 160x!

Posted by C A Upsdell on February 19, 2008, 8:47 am
Please log in for more thread options
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.

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

Typo :(

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