Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to have image cover the whole TD

Status
Not open for further replies.

spicymango

Programmer
May 25, 2008
119
CA
Hi I always define the length of the image
like

<td valign=top><img src="branding_files/vert_bar_fade.jpg" width="5" height="1000"></td>

My problem is sometime my TD height is 1000 sometime 500, or 600, length of the page keep changing

Is there a way to have image take the whole length of the TD with out having to define or hard length
 
Hi

Are you sure that image has to appear as content and not as decoration ? I mean, why not remove the [tt]img[/tt] tag and set that image as background for the [tt]td[/tt] ?

Feherke.
 
yes that will work thanks .. i have another question

I have a page 760 width , ob both side of the page i want to put two images (vertical bars), I can easily do that by modifying that page.

But i want that thing all over the site tha has over 100 pages, and i don't want to modify 100 pages.

I was told using <div> you can put images on top of you page where every you want. Also that you can do some poistioing trick that reagardless of the resolution images will appear exactly at the same point.. you havr any idea how to do that?
 
If you have 100+ pages you don't want to modify your options are limited.

Without modifying the "content" pages, the easiest thing to do is probably display them in a frameset, where the frame page would have the the outside bar images you want and the middle frame content could be changed by a list of links.

Look here for a frames brush up.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top