• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Table bgs

#1
I am tryin to put an image inside a table cell as a background, but I want the image to take up the entire size of the cell and not be repeated. So I want the image to be resized according to the dimensions of the cell. Is this possible and how can I do it
 
#2
I know you can stop the image being repeated by including this in a stylesheet...

TABLE
{
background-repeat: no-repeat;
background-attachment: fixed;
}

whether or not that helps you, I dont know... but at least you've stopped it repeating if nothing else :)
 
#3
damn well that kinda helped, but I got one section in the table that I want to repeat and one section that I dont want to repeat
 
#4
does this work?

<table>
<tr><td>
content that u want more than one background image on
</td></tr>
<tr><td class="wibble">
content that you want only one background image but stretched on
</td></tr>
</table>

(replace above with your table code - including the class="wibble")


change the stylesheet to this:

WIBBLE
{
background-repeat: no-repeat;
background-attachment: fixed;
}


i think that might work... been a while since i played with stylesheets so much

also, does this work?

background-width: 100%;
background-height: 100%;

not really sure - and i dont have an image to test it on.
 
#5
that is perfect, thnx :)

I cant get the background-height 100%; to make the image take up the whole cell height, but I can resize images by hand for that, though if you think of anything then let me know. I think I am going to go digging through the net for CSS info.

thnx again
 

Members online

No members online now.

Latest posts

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...
Xie
What a long strange trip it's been. =)

Forum statistics

Threads
61,962
Messages
673,242
Members
89,017
Latest member
Seggar