HighDots Forums  

Help needed in HTML coding

alt.html.tags alt.html.tags


Discuss Help needed in HTML coding in the alt.html.tags forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
shilsum
 
Posts: n/a

Default Help needed in HTML coding - 11-04-2003 , 07:37 PM






I have 3 images being displayed in a row. I would like to know if
there is a way to make the width of one of the images variable to fit
in whatever is left.

<tr>
<!-- -->
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td rowspan="1" colspan="2" valign="top">
<img src="../scv_hdr2_logo.gif" width="163" height="47"
border="0" alt="Image 1">
<img src="../scv_hdr_swoosh.gif" width="265" height="47"
border="0" alt="Image 2">
<img src="../scv_hdr_swoosh2.gif" align="top" width="574"
height="20" border="0" alt="Image 3">
</td>
</tr>
</table>
</td>
</tr>

I would like to replace the value 574 with something that will tell
the Browser to set the width of this image to whatever is balance.

How do I do that?

The problem that I face is that when the vertical scrollbar is
displayed, the above width is proper. When the vertical scrollbar is
not displayed, it shows white space in the corner.

If the resolution is increased, the white space increases
dramatically.

Image 3 is a small image of actual size 20 height and 5 width. It is
used as a filler to establish continuity of look and feel.

Reply With Quote
  #2  
Old   
Brett
 
Posts: n/a

Default Re: Help needed in HTML coding - 11-05-2003 , 01:57 PM






Here is one possible solution.....

<table width="100%" border="1" cellspacing="0" cellpadding="0" summary="">
<tr>
<td valign="top" width="163"><img src="../scv_hdr2_logo.gif" width="163"
height="47" border="0" alt="Image 1"></td>
<td valign="top" width="265"><img src="../scv_hdr_swoosh.gif" width="265"
height="47" border="0" alt="Image 2"></td>
<td valign="top" style="background-image:
url(../scv_hdr_swoosh2.gif);">&nbsp;</td>
</tr>
</table>

Notice the table width is 100% and the first two cells have a defined width.
The third cell then has an undefined width so that cell will fill the
remainder of the (100% width) table. Then we used css to give that cell a
background that will fill the entire cell.

Also, this same idea could also be accomplished using only css (no tables).

--
Brett
Provision Tech
http://www.provisiontech.net

"shilsum" <shilsum (AT) yahoo (DOT) com> wrote

Quote:
I have 3 images being displayed in a row. I would like to know if
there is a way to make the width of one of the images variable to fit
in whatever is left.

tr
!-- --
td
table width="100%" border="0" cellspacing="0" cellpadding="0"
tr
td rowspan="1" colspan="2" valign="top"
img src="../scv_hdr2_logo.gif" width="163" height="47"
border="0" alt="Image 1"
img src="../scv_hdr_swoosh.gif" width="265" height="47"
border="0" alt="Image 2"
img src="../scv_hdr_swoosh2.gif" align="top" width="574"
height="20" border="0" alt="Image 3"
/td
/tr
/table
/td
/tr

I would like to replace the value 574 with something that will tell
the Browser to set the width of this image to whatever is balance.

How do I do that?

The problem that I face is that when the vertical scrollbar is
displayed, the above width is proper. When the vertical scrollbar is
not displayed, it shows white space in the corner.

If the resolution is increased, the white space increases
dramatically.

Image 3 is a small image of actual size 20 height and 5 width. It is
used as a filler to establish continuity of look and feel.



Reply With Quote
  #3  
Old   
J&D
 
Posts: n/a

Default Re: Help needed in HTML coding - 11-05-2003 , 02:14 PM



Try use this image as background for table...

J&D

"shilsum" <shilsum (AT) yahoo (DOT) com> píse v diskusním príspevku
news:d6b877e6.0311041737.2401cc44 (AT) posting (DOT) google.com...
Quote:
I have 3 images being displayed in a row. I would like to know if
there is a way to make the width of one of the images variable to fit
in whatever is left.

tr
!-- --
td
table width="100%" border="0" cellspacing="0" cellpadding="0"
tr
td rowspan="1" colspan="2" valign="top"
img src="../scv_hdr2_logo.gif" width="163" height="47"
border="0" alt="Image 1"
img src="../scv_hdr_swoosh.gif" width="265" height="47"
border="0" alt="Image 2"
img src="../scv_hdr_swoosh2.gif" align="top" width="574"
height="20" border="0" alt="Image 3"
/td
/tr
/table
/td
/tr

I would like to replace the value 574 with something that will tell
the Browser to set the width of this image to whatever is balance.

How do I do that?

The problem that I face is that when the vertical scrollbar is
displayed, the above width is proper. When the vertical scrollbar is
not displayed, it shows white space in the corner.

If the resolution is increased, the white space increases
dramatically.

Image 3 is a small image of actual size 20 height and 5 width. It is
used as a filler to establish continuity of look and feel.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.