Streching a background image

  • moomoouk
  • Banned
  • Banned
  • No Avatar
  • Joined: Jun 16, 2004
  • Posts: 15
  • Status: Offline

Post June 17th, 2004, 4:32 pm

Another background question - is there anyway to stretch an image over a background? this would really help reduce my file sizes for the poor people on dial-up :P

anything else you can mess around with backgrounds? what can you put in the bgproperties field other than 'still'?
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post June 17th, 2004, 4:32 pm

  • rtm223
  • Mastermind
  • Mastermind
  • User avatar
  • Joined: Mar 24, 2004
  • Posts: 1855
  • Loc: Uk
  • Status: Offline

Post June 17th, 2004, 4:44 pm

rtm223 wrote:
Nope. It's coming with CSS3, which means it will be about 4 years before a sensible number of people have browsers that support it.

Your best bet is to do some positioning. Try googling

CSS z-index "position:absolute"

and see what you get. You should be able to make an image tag stretch to the right size and then place the content over the top.

It's a round-about way of doing things, and there are some situations that it just won't work in, but as far as I know, it's the only way with html/CSS2

Hope this helps.



The biggest problem is that the image will go all grainy.

bugger all you can do with backgrounds. Tile them, have them fixed or moving with the page. Thats about it. Multiple overlapping backgrounds can do some fancy stuff, but on their own, it's all pretty dull :lol:
CSS website design tutorials
  • moomoouk
  • Banned
  • Banned
  • No Avatar
  • Joined: Jun 16, 2004
  • Posts: 15
  • Status: Offline

Post June 19th, 2004, 3:52 am

there must be something else to go in the bgproperties" " other than still surely????
  • sly1340
  • Graduate
  • Graduate
  • User avatar
  • Joined: Dec 03, 2003
  • Posts: 238
  • Loc: not available
  • Status: Offline

Post June 19th, 2004, 7:08 am

moomoouk wrote:
there must be something else to go in the bgproperties" " other than still surely????


fixed

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: No registered users and 141 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.