Image Background on .php Page

S1lv3rdo7

Regular Member
Joined
Jul 17, 2010
Messages
486
Reaction score
325
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!
 
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 :-)
 
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!
 
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 :-)

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!
 
Back
Top