Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2010
    Posts
    3
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Internet Explorer CSS background-stretch for IE

    I have a div with a background image that's meant to stretch with the div when I add more content. It works well in almost all browsers with this code:

    background-size: 100% 100%; /* used for firefox 4.0 and later */
    -moz-background-size: 100% 100%; /* used for firefox 3.6 */
    -o-background-size: 100% 100%; /* used for opera */
    -webkit-background-size: 100% 100%; /* used for safari and chrome */


    But I couldn't find a way to make it work in IE. Is there some other method I could use?

  • #2
    Regular Coder
    Join Date
    Jan 2009
    Posts
    193
    Thanks
    0
    Thanked 20 Times in 20 Posts
    Do you have a link of an example or can you post some additional code?

  • #3
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,852
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Is there some other method I could use?
    You may fake the same by an absolutely positioned <img> tag. See http://www.cssplay.co.uk/layouts/background.html
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

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