treehouse : what would you like to learn today?
Web Design Web Development iOS Development

Using Texture Background

  • Hi, I tried to use this image http://imgur.com/0xYkD as background back it took 7 seconds to load the the image.. is there anyway to use that as background without affecting the loading speed of my website?. Thanks

  • If you look closeley at the image you can see it is repeating horizontally.

    What I would do is slice the image into one of these repeatable chunks. Then stick it on jpegmini to minify it.

    Then in your code, do background: url('imagelocation/filename.jpg') repeat-x;

  • hi.. mark

    n css3 u can use gradients instead of images...

    it is possible to convert ur image into gradient

    use d tool ultimate css generator upload ur pic nd generate it

    already i try dat wit ur image.....dat gradient is here