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
    Apr 2005
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Script for picture to fit to screen size

    I run a clan for a game and need to make a splash screen and need a script so it will fit to the screens size for players with different screen settings, please can some one help me out with a script.
    NEED HELP !!!! PHP PEOPLE!!!! PLEASE HELP ME WITH SCRIPTING
    My clan http://www.newworldsoldiers.com/

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You could try something like this -

    <div id="background">
    <img src="yourpicture.jpg" alt="">
    </div>

    CSS -

    body, html, #background, #background img {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    }

    That will stretch your image, although I can't imagine it being very pretty at high resolutions...


  •  

    Posting Permissions

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