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
    New Coder
    Join Date
    Mar 2011
    Posts
    26
    Thanks
    4
    Thanked 0 Times in 0 Posts

    Is there a way to make the background image adjust to screen resolution like this?

    Is there a way to make the background image adjust to screen resolution like this site?
    Without the super complicated javascript/jquery in their page source?

    http://www.ilovebiko.com/

  • #2
    Master Coder Excavator's Avatar
    Join Date
    Dec 2006
    Location
    Alaska
    Posts
    9,747
    Thanks
    22
    Thanked 1,838 Times in 1,822 Posts
    Hello shmoomoo,
    There is. I did not look to see how that link is doing it but a very simple jQuery solution can be found here.

    Another solution might be a CSS only method. It doesn't preserve aspect ratio though and, for many new coders, seems to be more complicated.
    Validate often DURING development - Use it like a splelchecker | Debug during Development |Write it for FireFox, ignore IE
    Use the right DocType | Validate your markup | Validate your CSS | Why validating is good | Why tables are bad

  • Users who have thanked Excavator for this post:

    shmoomoo (04-09-2011)


  •  

    Posting Permissions

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