View Full Version : image 100%


putnamehere
03-11-2006, 05:10 PM
OK so i'v made a layout and thers a image that i want as a background in my table. The table will vary in size and content but i want the background to stay the same even when it exised it's atual height.

<td Background="Site/site_08.gif" width="254" height="763">

is what i am usieng so far so i thought that if i put

<td Background="Site/site_08.gif" width="254" height="100%">

Then problem solved but infact it jsut makes the table 100% and not the image.

HElp?

neonick5647
03-11-2006, 05:45 PM
hmmm....i don't think I quite understand. Can I have a link to the page please?

putnamehere
03-11-2006, 06:07 PM
http://www.phpcodes.co.uk/new.html
See how it says text in teh side well if i put lots of text tehr then it repaetes the background and that looks very odd.
so i need to make the background image height a certen height how do i do this?

luvhartz
03-11-2006, 07:06 PM
if your on about stretching the image, that would reduce the quality... the only thing that I can think of is taking a section of the background and letting it repeat down using CSS... I'm abit confused though

Ready
03-12-2006, 02:01 AM
are you saying the image should stretch as the page varies in height? This is how it sounds and I can't image this......from a cosmetics standpoint. That would look horrible. Take your image and stretch the height at various %'s. Maybe I misunderstand this totally though.

also, i could b totally wrong but i'm not sure you can mix pixels numbers with %'s. i think you need to be consistent with them......again I could be very wrong.