Submit Your Article Forum Rules

Results 1 to 10 of 10

Thread: CSS background image

  1. #1

    CSS background image

    I was wondering if anyone knew how to make a background image in CSS auto size itself so that everything is always to the right scale. I am not looking to repeat an image but am loking for one image to get bigger and smaller as the browser window gets bigger and smaller. Is this impossible?

  2. #2
    Does nobody know? Is anyone out there?

  3. #3
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073
    Ask.. and you shall receive...
    I think this is what you're looking for.
    Enjoy ;o)

    Paul

  4. #4
    Senior Member
    Join Date
    Apr 2004
    Posts
    446
    Pretty darn neat :)

  5. #5
    Thanks. It does not seem to work in Mozilla, but does work in IE 6.

  6. #6
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073
    Yes I know, there is actually a notice on the page itself to that effect. Sad but true! So roughly 75-80% of your visitors will see the effect!

    If we had Scalable Vector Graphics (SVG) plugins on all our browsers, then that would fit the job perfectly. SVG images used on a web page scale perfectly, (hence the name) and they don't degrade/pixelise in the way that a jpeg or gif image does.

  7. #7
    When do you think that SVG will eventually be supported. I've been meaning to learn more about it. I have heard it can kick Flash ou of the market. Which browsers currently support it? I should probably researhit but I am worried that it will never come to be.

  8. #8
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073
    Quote Originally Posted by emi_b
    When do you think that SVG will eventually be supported. I've been meaning to learn more about it. I have heard it can kick Flash ou of the market. Which browsers currently support it? I should probably research it but I am worried that it will never come to be.
    When will it be supported? Good question! :o) Well it's officially recognised by the W3C as an XML-based language for describing two-dimensional graphics / applications. The SVG Working Group is currently developing a working draft (version 1.2).
    There are already mobile phones on the market using SVG technology, Adobe, Corel are both strong supporters of SVG, and coincidentally supply the two best SVG viewers!

    One of the deciding factors will be browser compatibility as well as improved net infrastructure. I would like to see that happen within the next 2 years... although that maybe wishful thinking! :o) If you're interested in finding out more, there are plenty of sites to choose from... there's the official W3C site, or you could try SVGeneral, which I had a hand in building (shameless self-promotion! ;o) )

    Paul

  9. #9
    Senior Member
    Join Date
    Jul 2003
    Posts
    1,332
    I've been playing around with SVG's so have been reading up on their support, thanks for extra resource Paul.

    (dont see a lot of white space in the page design tho) ;-)
    [url returns 404 - removed by mod 07/11]
    It' time for Progressive Web & IT Development!

  10. #10
    Senior Member paulhiles's Avatar
    Join Date
    Jul 2003
    Posts
    2,073
    Quote Originally Posted by matauri
    thanks for extra resource Paul.
    (dont see a lot of white space in the page design tho) ;-)
    LOL!! I know what you mean.. but it is intended primarily as an informational site, and it's still in its infancy. I might pretty it up a bit with some suitable graphics.. but columns of text, and lots of links dominate at the moment! :o)

Similar Threads

  1. Background image: How to?
    By kgun in forum Graphics & Design Discussion Forum
    Replies: 9
    Last Post: 10-24-2009, 01:58 PM
  2. Resizing background image (CSS)
    By Laurentvw in forum Graphics & Design Discussion Forum
    Replies: 1
    Last Post: 03-30-2007, 02:29 PM
  3. Background Image Problem
    By chingy in forum Graphics & Design Discussion Forum
    Replies: 5
    Last Post: 01-23-2006, 02:20 AM
  4. Static Background Image - Need Help!
    By Punk Rich in forum Graphics & Design Discussion Forum
    Replies: 6
    Last Post: 09-27-2005, 04:38 AM
  5. Using a background image
    By michaelstevenson in forum Graphics & Design Discussion Forum
    Replies: 2
    Last Post: 01-21-2005, 08:26 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •