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
Posted by miguel.mateo on February 19, 2008, 1:14 am
Please log in for more thread options
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>
<table width="100%" border=1>
<tr>
<td>
<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>
         <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 ...

Thanks,
SpiderMan

Posted by Harlan Messinger on February 19, 2008, 1:27 am
Please log in for more thread options
miguel.mateo@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 ...

Posted by miguel.mateo on February 19, 2008, 1:57 am
Please log in for more thread options
On Feb 19, 3:27=A0pm, Harlan Messinger
> miguel.ma...@gmail.com wrote:
> > I am trying to fix a weird problem and I have found no reason for the
> > =A0miss behaviour of IE. =A0The following code:
>
> > <html> <body> <center>
>
> The <center> tag is long since obsolete. Remove.
>
> > <table width=3D"100%" border=3D1> <tr> <td>
>
> Use CSS for centering inline content in the cell: style=3D"text-align:
> center;". (Better to use a <style> section or a separate CSS file.)
>
> =A0><center>
>
> > <img alt=3D"Greece 2004" src=3D"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=3D"2"> Description: is a
> > description that holds </td> </tr> <tr> <td style=3D"width:160"
> > width=3D160>
>
> 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=3D"Finland 2004" src=3D"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=3D"2"> Description: </td> </tr>
> > </table> </center> </body> </html>
>
> > Shows a table with some rows. =A0I am trying to put =A0the first cell to=

> > 160 pixels and the image centered on it (image of 150 pixels) and I
> > find no way of doing it. =A0Can somebody tell me what am I doing wrong?
> > =A0Please change the code and try ...- Hide quoted text -
>
> - Show quoted text -

I changed the code based on your suggestions to:

<html>
<body>
<table width=3D"100%" border=3D1 style=3D"text-align:center;">
<tr>
<td style=3D"width:160x;">
<img alt=3D"Greece 2004" src=3D"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=3D"2">
         Description: is a description that holds
        </td>
</tr>
<tr>
        <td style=3D"width:160x;">
         <img alt=3D"Finland 2004" src=3D"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=3D"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?

Thanks in advance,
SpideMan

Posted by miguel.mateo on February 19, 2008, 2:54 am
Please log in for more thread options
On Feb 19, 3:57=A0pm, miguel.ma...@gmail.com wrote:
> On Feb 19, 3:27=A0pm, Harlan Messinger
>
>
>
>
>
> > miguel.ma...@gmail.com wrote:
> > > I am trying to fix a weird problem and I have found no reason for the
> > > =A0miss behaviour of IE. =A0The following code:
>
> > > <html> <body> <center>
>
> > The <center> tag is long since obsolete. Remove.
>
> > > <table width=3D"100%" border=3D1> <tr> <td>
>
> > Use CSS for centering inline content in the cell: style=3D"text-align:
> > center;". (Better to use a <style> section or a separate CSS file.)
>
> > =A0><center>
>
> > > <img alt=3D"Greece 2004" src=3D"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=3D"2"> Description: is a
> > > description that holds </td> </tr> <tr> <td style=3D"width:160"
> > > width=3D160>
>
> > 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=3D"Finland 2004" src=3D"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=3D"2"> Description: </td> </tr>=

> > > </table> </center> </body> </html>
>
> > > Shows a table with some rows. =A0I am trying to put =A0the first cell =
to
> > > 160 pixels and the image centered on it (image of 150 pixels) and I
> > > find no way of doing it. =A0Can somebody tell me what am I doing wrong=
?
> > > =A0Please change the code and try ...- Hide quoted text -
>
> > - Show quoted text -
>
> I changed the code based on your suggestions to:
>
> <html>
> =A0 <body>
> =A0 =A0 <table width=3D"100%" border=3D1 style=3D"text-align:center;">
> =A0 =A0 =A0 <tr>
> =A0 =A0 =A0 =A0 <td style=3D"width:160x;">
> =A0 =A0 =A0 =A0 =A0 =A0 <img alt=3D"Greece 2004" src=3D"http://upload.wiki=
media.org/
> wikipedia/commons/thumb/
> 6/62/%E2%82%AC2_commemorative_coin_Greece_2004.jpg/150px-
> %E2%82%AC2_commemorative_coin_Greece_2004.jpg"/>
> =A0 =A0 =A0 =A0 </td>
> =A0 =A0 =A0 =A0 <td>Greece</td>
> =A0 =A0 =A0 </tr>
> =A0 =A0 =A0 <tr>
> =A0 =A0 =A0 =A0 <td colspan=3D"2">
> =A0 =A0 =A0 =A0 =A0 Description: is a description that holds
> =A0 =A0 =A0 =A0 </td>
> =A0 =A0 =A0 </tr>
> =A0 =A0 =A0 <tr>
> =A0 =A0 =A0 =A0 <td style=3D"width:160x;">
> =A0 =A0 =A0 =A0 =A0 =A0 <img alt=3D"Finland 2004" src=3D"http://upload.wik=
imedia.org/
> wikipedia/commons/thumb/a/ab/
> %E2%82%AC2_commemorative_coin_Finland_2004.jpg/150px-
> %E2%82%AC2_commemorative_coin_Finland_2004.jpg"/>
> =A0 =A0 =A0 =A0 </td>
> =A0 =A0 =A0 =A0 <td>Greece</td>
> =A0 =A0 =A0 </tr>
> =A0 =A0 =A0 <tr>
> =A0 =A0 =A0 =A0 <td colspan=3D"2">
> =A0 =A0 =A0 =A0 =A0 Description:
> =A0 =A0 =A0 =A0 </td>
> =A0 =A0 =A0 </tr>
> =A0 =A0 </table>
> =A0 </body>
> </html>
>
> Still the first cells (where the images are hold) does not go to 160
> pixels, instead expands to way more. =A0This does not happen If I remove
> the last word of the "description" content ... any idea?
>
> Thanks in advance,
> SpideMan- Hide quoted text -
>
> - Show quoted text -

Please discard the last line of the last paragraph. The page does not
render the first celss of the table to 160 pixels as it should, that
is what I am concerned about.

Thanks,
SpiderMan

Posted by Jukka K. Korpela on February 19, 2008, 3:07 am
Please log in for more thread options
Scripsit miguel.mateo@gmail.com:

> Please discard the last line of the last paragraph.

The odds are that most knowledgeable people discard your postings, at
least unless you specify the URL and stop mindless fullquoting.

> The page does not
> render the first celss of the table to 160 pixels as it should, that
> is what I am concerned about.

Try validating your markup, then using the W3C CSS Validator to spot the
syntax errors in your CSS code. And note that this group is about HTML,
not CSS. You have very elementary problems with CSS, possibly among
other problems.

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


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