What's wrong with table height?

X

xyzzy

This is supposed to put a 1 pixel border around the image. Top, left,
right is OK, bottom is a lot thicker (3-4 pixels). What am I doing
wrong or is IE 6 buggy? TIA

<table width="642" height="482" bgcolor="#00ff00" cellpadding="1"
cellspacing="0" border="0" align="center">
<tr align="center" valign="middle">
<td width="642" height="482" valign="middle" align="center">
<img src="a.jpg" width="640" height="480" alt="" border="0">
</td></tr></table>
 
R

rf

xyzzy said:
This is supposed to put a 1 pixel border around the image. Top, left,
right is OK, bottom is a lot thicker (3-4 pixels). What am I doing
wrong or is IE 6 buggy? TIA

<table width="642" height="482" bgcolor="#00ff00" cellpadding="1"
cellspacing="0" border="0" align="center">
<tr align="center" valign="middle">
<td width="642" height="482" valign="middle" align="center">
<img src="a.jpg" width="640" height="480" alt="" border="0">
</td></tr></table>

<img src="a.jpg" width="640" height="480" alt="" style="border: solid 1px
#0f0;">

Cheers
Richard.
 
B

Brett

This is supposed to put a 1 pixel border around the image. Top, left,
<img src="a.jpg" width="640" height="480" alt="" style="border: solid 1px
#0f0;">

Putting the border around the image is the better way of doing
this...but...if you need to use tables for some reason don't put a line
break before/after the image.

<table width="642" height="482" bgcolor="#00ff00" cellpadding="1"
cellspacing="0" border="0" align="center">
<tr align="center" valign="middle">
<td width="642" height="482" valign="middle" align="center"><img
src="a.jpg" width="640" height="480" alt="" border="0"></td>
</tr>
</table>
 
R

rf

xyzzy said:
Thanks but I need multiple nested borders via div or table.

Your original post did not state this. It appeared from your example that
the only reason you were using a table was to simulate an image border.

What sort of multiple nested borders?

Cheers
Richard.
 
T

Toby A Inkster

xyzzy said:
Thanks but I need multiple nested borders via div or table.

<div style="border: thin solid blue;">
<span style="border: medium dotted red;">
<img style="border: thin solid green;"
src="a.jpg" width="640" height="480" alt="">
</span>
</div>
 
S

Sid Ismail

: This is supposed to put a 1 pixel border around the image. Top, left,
: right is OK, bottom is a lot thicker (3-4 pixels). What am I doing
: wrong or is IE 6 buggy? TIA
:
: <table width="642" height="482" bgcolor="#00ff00" cellpadding="1"
: cellspacing="0" border="0" align="center">
: <tr align="center" valign="middle">
: <td width="642" height="482" valign="middle" align="center">
: <img src="a.jpg" width="640" height="480" alt="" border="0">
: </td></tr></table>


Can we see the full markup in a url.

You're using Tables for the wrong purpose!
Read up on the hspace and vspace properties that can be added to IMG as
strawberries to ice-cream.

Sid
 
S

Sid Ismail

: <img src="a.jpg" width="640" height="480" alt="" style="border: solid 1px
: #0f0;">


Yes - elegant. :))

Sid
 
S

Sid Ismail

:
: : This is supposed to put a 1 pixel border around the image. Top, left,
: : right is OK, bottom is a lot thicker (3-4 pixels). What am I doing
: : wrong or is IE 6 buggy? TIA
: :
: : <table width="642" height="482" bgcolor="#00ff00" cellpadding="1"
: : cellspacing="0" border="0" align="center">
: : <tr align="center" valign="middle">
: : <td width="642" height="482" valign="middle" align="center">
: : <img src="a.jpg" width="640" height="480" alt="" border="0">
: : </td></tr></table>
:
:
: Can we see the full markup in a url.
:
: You're using Tables for the wrong purpose!
: Read up on the hspace and vspace properties that can be added to IMG as
: strawberries to ice-cream.


Sorry - you wanted to add _borders_ around the image. Forget the hspace and
vspace then - use nested spans in a div. But... no tables please for this.

Sid
 
X

xyzzy

Sid Ismail said:
Sorry - you wanted to add _borders_ around the image. Forget the hspace and
vspace then - use nested spans in a div. But... no tables please for this.

Why not? Tried spans but rendering/refresh is unreliable in IE6 at
least.
 
S

Sid Ismail

:
: >Sorry - you wanted to add _borders_ around the image. Forget the hspace and
: >vspace then - use nested spans in a div. But... no tables please for this.
:
: Why not? Tried spans but rendering/refresh is unreliable in IE6 at
: least.


URL ? Always better seeing the real thing, instead of 3 HTML lines...

Sid
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,091
Messages
2,570,605
Members
47,225
Latest member
DarrinWhit

Latest Threads

Top