1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Image Background on .php Page

Discussion in 'Web Design' started by S1lv3rdo7, Apr 5, 2013.

  1. S1lv3rdo7

    S1lv3rdo7 Regular Member

    Joined:
    Jul 17, 2010
    Messages:
    480
    Likes Received:
    315
    Occupation:
    Tech Support
    Location:
    Austin, TX
    I'm trying to take an image from a website and then put it on my page for the background. There's some sort of code that I'm missing. The image isn't static. It moves and adjusts with the webpage. How do they do this? For example.

    http://www.diamondfoxxx.com/diamondfoxxx.php

    If you right click on the page and then select "view background image" it has all this white space around it. Yet, when you load the page all that white space is gone? I just want that image as my background and act as it does on that URL. I've tried a number of different ways in CSS3 and it never comes out right.

    I'll keep searching Google and reading, if I find out I'll post back. Thanks for the help!
     
  2. Gogol

    Gogol Elite Member

    Joined:
    Sep 10, 2010
    Messages:
    3,063
    Likes Received:
    2,872
    Gender:
    Male
    Sorry your domain seems to be an adult one and i can't view that from office :p
    You can achieve this using php and jquery. I will help you out once I reach home :)
     
  3. S1lv3rdo7

    S1lv3rdo7 Regular Member

    Joined:
    Jul 17, 2010
    Messages:
    480
    Likes Received:
    315
    Occupation:
    Tech Support
    Location:
    Austin, TX
    Of course Healzer is the CSS3 Coding master. Thanks!

    <style type="text/css">
    body {
    background: url("back.jpg") no-repeat scroll center top rgb(255, 255, 255);
    margin: 0px;
    padding: 0px;
    }
    </style>

    Sorry for making a pointless thread. BHW family always there to support!
     
    • Thanks Thanks x 1
  4. S1lv3rdo7

    S1lv3rdo7 Regular Member

    Joined:
    Jul 17, 2010
    Messages:
    480
    Likes Received:
    315
    Occupation:
    Tech Support
    Location:
    Austin, TX
    Thanks for the quick reply. I was seriously having anger issues over trying to figure this out. I appreciate your offer for help. I'm still learning CSS3 and it's kicking my ass. It's almost as bad as PHP. The language that fights back!
     
    • Thanks Thanks x 1
  5. healzer

    healzer Jr. Executive VIP Jr. VIP Premium Member

    Joined:
    Jun 26, 2011
    Messages:
    2,364
    Likes Received:
    1,967
    Gender:
    Male
    Occupation:
    Marketing automation tools
    Location:
    Somewhere in Europe
    Home Page:
    glad helping you out ;)
     
    • Thanks Thanks x 1