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 2 of 2
  1. #1
    Regular Coder
    Join Date
    Jul 2011
    Posts
    172
    Thanks
    64
    Thanked 2 Times in 2 Posts

    smaller background image

    Just wondering how to make browser to display the jpg 50% smaller (it gets repeated on x and y on entire website):

    Code:
    body { background-image:url('sheep.jpg') }
    I know its best just to make it smaller in Photoshop, but I would like to know the code too.

  • #2
    Registered User
    Join Date
    Jun 2011
    Posts
    1,063
    Thanks
    12
    Thanked 241 Times in 240 Posts
    http://www.w3schools.com/cssref/css3...round-size.asp

    The background-size property is supported in IE9+, Firefox 4+, Opera, Chrome, and Safari 5+.


  •  

    Posting Permissions

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