1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to scale PNG images automatically when resize to full screen browser

Discussion in 'HTML & Website Design' started by marsmellow, May 24, 2012.

  1. #1
    Hello dear coders,

    I am programming a Wordpress website.
    I used some transparant PNG images, like logo etc.
    Now when user enlarges/resizes his browser, I want the PNG images resize/scale (in ratio!) along with it, so everything will stay in proportion.
    I was looking at responsive design, but I hope their is an other solution, so I dont have to design/program different versions from the site.

    I hope someone can help me out.

    Thanks!
     
    marsmellow, May 24, 2012 IP
  2. vnmichael

    vnmichael Greenhorn

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #2
    vnmichael, May 24, 2012 IP
  3. marsmellow

    marsmellow Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hello Michael,

    thanks for your quick respons.
    I checked responsive design, but I was hoping there would be an easier solution.
    What I just don't understand why it's possible to scale the background image to full screen browser, but that ordinary images don't.
    Is there not a way to stack the PNG's (background and 'foreground' images), so they behave just like the background when resizing?
    Be aware, I must be able to change the background images in the backend of Wordpress per page/post, only the rest of the graphics will always remain the same, when user selects a new page.

    Any idea?
     
    marsmellow, May 24, 2012 IP
  4. vnmichael

    vnmichael Greenhorn

    Messages:
    31
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    6
    #4
    Why doesn't you try big background ( 1280 x 1000 ) and used attribute fixed in css.
    Example : body { background: images/bg.jpg; background-attachment: fixed; }

    --
    I'm Michael. I'm a reviewer of http://citywpthemes.com
     
    vnmichael, May 24, 2012 IP
  5. marsmellow

    marsmellow Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Hello Michael,

    can you please contact me?
    It's urgent. Thanks.
     
    marsmellow, May 26, 2012 IP
  6. trimi

    trimi Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    this can be helpful ::


    try to fix it using CSS (%) like :



    img {

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

    }
     
    trimi, May 29, 2012 IP
  7. marsmellow

    marsmellow Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Hello Trimi,

    I fixed it in another way.
    Thanks for your respons.
     
    marsmellow, May 29, 2012 IP
  8. marsmellow

    marsmellow Peon

    Messages:
    43
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    Topic closed ;-)
     
    marsmellow, May 29, 2012 IP