4 replies [Last post]
C10
Offline
newbie
Last seen: 16 years 17 weeks ago
Joined: 2004-09-29
Posts: 6
Points: 0

Once I found a way to make a background image in a td scale with the td,
when window was made larger or smaller.
I (so stupid) did not use it in the end and never wrote down the code.

I am all into divs instead of tables, and would like to do the same thin now in a div.

The example of the page is here:
www.c10web.com/fa/fa2.htm

The left side with the picture in it is suppost to be all over the left side (it is seperated in 2 one side with the picture = A
and one side with the text = B
The backgroundimage is suppost to be 100% of A in height and width.

The code used for A =

   #links {
	margin: 0 0 0 0;
    padding: 0;
    width: 50%;
	height: 100%;
    float: left;
    overflow: hidden;
    background: #a75eac url(afbeeldingen/foto_groep.jpg) no-repeat 0% 0%;
  }

I posted a question about this site before and these problems are kind of solved now. So i am eager to get it all done.[/code]

Tony
Tony's picture
Offline
Moderator
Brisbane
Last seen: 4 days 12 hours ago
Brisbane
Timezone: GMT+10
Joined: 2003-03-12
Posts: 5343
Points: 2964

Background image resize with windowsize possible??

Hi C10,
This has come up before and I don't think a suitable solution was found.

C10
Offline
newbie
Last seen: 16 years 17 weeks ago
Joined: 2004-09-29
Posts: 6
Points: 0

Background image resize with windowsize possible??

Hmm too bad!!
SHould be possible so many things are....

I did however mange once in a table cell do you by any chance know how that was done?

Then I could like make a table within the div that scales along with the div? Or would that be overcomplicating? Wink

gary.turner
gary.turner's picture
Offline
Moderator
Dallas
Last seen: 2 days 10 hours ago
Dallas
Timezone: GMT-6
Joined: 2004-06-25
Posts: 9776
Points: 3858

Background image resize with windowsize possible??

At this time, a background image may be positioned, attached, and tiled—you can't resize.

The css3 draft proposal does include the background-size property.

Can you hang in there a while? Smile

cheers,

gary

If your web page is as clever as you can make it, it's probably too clever for you to debug or maintain.

C10
Offline
newbie
Last seen: 16 years 17 weeks ago
Joined: 2004-09-29
Posts: 6
Points: 0

Background image resize with windowsize possible??

Okay hanging in there Laughing out loud

testing my patience haha

Thanx