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