M
MyndPhlyp
I've been busting my head trying to figure this out for quite some time.
With IE6 and NS7, no problems. I can simply code the HTML <img
height="100%"> and be done with it.
But NS4 and NS6 (and probably a couple of other IE and NS versions I can't
get to right now) don't want to play nice unless I hard code the image
height.
(Yes, I'm one of those who insists on still coding for NS4.)
The <img> is a decorative border, part of a 3x3 table. The outer cells are
the graphics (GIF in this case) while the center cell is the text. The
amount of text is variable - I'm using some client-side JavaScript to load
up lines of HTML based on today's date versus a calendar of events.
I can't do any server-side stuff - the ISP doesn't allow it on personal web
sites.
Is there a way in client-side JavaScript to determine the height of a <td>
after loading it up with items and then set the two <img>'s on either end of
the row (and optionally the 2 <td>'s) to match the displayed height thereby
generating a solid graphical border?
With IE6 and NS7, no problems. I can simply code the HTML <img
height="100%"> and be done with it.
But NS4 and NS6 (and probably a couple of other IE and NS versions I can't
get to right now) don't want to play nice unless I hard code the image
height.
(Yes, I'm one of those who insists on still coding for NS4.)
The <img> is a decorative border, part of a 3x3 table. The outer cells are
the graphics (GIF in this case) while the center cell is the text. The
amount of text is variable - I'm using some client-side JavaScript to load
up lines of HTML based on today's date versus a calendar of events.
I can't do any server-side stuff - the ISP doesn't allow it on personal web
sites.
Is there a way in client-side JavaScript to determine the height of a <td>
after loading it up with items and then set the two <img>'s on either end of
the row (and optionally the 2 <td>'s) to match the displayed height thereby
generating a solid graphical border?