Say I'm doing a nav bar with just gif images.
I want the last section to be a space filler that stretches to the edge of the page regardless of the viewers screen resolution.
Example:
[200 pixel blank section of bar][100 pixel button][100 pixel button][100 pixel button][How do I make this one stretch to fill the rest of this line]
:icon6:
HTML question....
Just plain ole' HTML. 
What I want to do:
http://img270.imageshack.us/img270/7898/bleh4ug.png
I don't want to give it a specific length, I want it to stretch to the edge regardless of res.
Current HTML for the bar you see:
header.gif being the blank parts, and button.bmp being the button parts. I'm just trying to get it figured out before I do the buttons.
What I want to do:
http://img270.imageshack.us/img270/7898/bleh4ug.png
I don't want to give it a specific length, I want it to stretch to the edge regardless of res.
Current HTML for the bar you see:
<table height="30" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width="100%">
<img src="images/header.gif"
height="30" width="200" /><img src="images/button.bmp"
height="30" width="110" /><img src="images/button.bmp"
height="30" width="110" /><img src="images/button.bmp"
height="30" width="110" /><img src="images/button.bmp"
height="30" width="110" /><img src="images/header.gif"
height="30" width="300" />
</td>
</tr>
</table>
header.gif being the blank parts, and button.bmp being the button parts. I'm just trying to get it figured out before I do the buttons.
nice to see you are using xhtml 
you will need to set the icon image as a 'background' of a table cell. make an image with just the background part of the button, not the text. this can be short in the horizontal direction, since it will repeat. then you set table to be 100% width, and you give the table cell with the menu to be an exact pixel length. you don't give the expanding cell any specific length (it defaults to fill in the remaining length of the table).
not sure exactly the code... it should be something like that though.
you will need to set the icon image as a 'background' of a table cell. make an image with just the background part of the button, not the text. this can be short in the horizontal direction, since it will repeat. then you set table to be 100% width, and you give the table cell with the menu to be an exact pixel length. you don't give the expanding cell any specific length (it defaults to fill in the remaining length of the table).
Code: Select all
<table height="30" width="100%" cellpadding="0" cellspacing="0" border="0">
<tr valign="top">
<td width=640>
<img src="images/header.gif"
height="30" width="200" /><img src="images/button.bmp"
height="30" width="110" /><img src="images/button.bmp"
height="30" width="110" /><img src="images/button.bmp"
height="30" width="110" /><img src="images/button.bmp"
height="30" width="110" />
</td>
<td style="background-image: url(images/button_bk.gif); background-repeat: repeat-x">
</td>
</tr>
</table>
Last edited by bitWISE on Sun Jul 17, 2005 9:37 pm, edited 1 time in total.