Close

Results 1 to 8 of 8
  1. #1
    DF VIP Member ElWappo's Avatar
    Join Date
    Jun 2004
    Location
    In The Beast
    Posts
    1,230
    Thanks
    0
    Thanked:        0
    Karma Level
    463

    Default Making a background image static HTML

    Im an HTML novice. I just want to add some code to a super simple web page to make the back ground image static and the text scroll over the top.

    like this
    http://www.myspace.com/reculver

    I've looked at a couple of the solutions I've employed all seem to work in IE but not fire fox. Does anyone code that will work for both?

    Thanks
    EW

  2. #2
    DF VIP Member partyman's Avatar
    Join Date
    Jul 2001
    Location
    Saarf Larndarn
    Posts
    1,398
    Thanks
    0
    Thanked:        0
    Karma Level
    436

    Default Re: Making a background image static HTML

    maybe try a bit of CSS like this:

    Code:
    background: transparent url(xxx.jpg) repeat fixed 0% 50%; 
    -moz-background-clip: initial; 
    -moz-background-origin: initial; 
    -moz-background-inline-policy: initial;

  3. #3
    DF VIP Member BBK's Avatar
    Join Date
    May 2006
    Location
    here
    Posts
    12,422
    Thanks
    234
    Thanked:        128
    Karma Level
    1084

    Default Re: Making a background image static HTML

    Or here's a javascript version:

    Code:
    <script language="JavaScript1.2">
    
    if (document.all||document.getElementById)
    document.body.style.background="url('insertimagename.jpg') white center no-repeat fixed"
    
    </script>

  4. #4
    DF VIP Member ElWappo's Avatar
    Join Date
    Jun 2004
    Location
    In The Beast
    Posts
    1,230
    Thanks
    0
    Thanked:        0
    Karma Level
    463

    Default Re: Making a background image static HTML

    forgive me for being thick...but trust me when i say I am. Where would I put those respective bits of code?

    Also does the CSS version code have to go in my css file...I am also in the dark with css to a large degree.

    Thanks for springing to my aid.

  5. #5
    DF VIP Member partyman's Avatar
    Join Date
    Jul 2001
    Location
    Saarf Larndarn
    Posts
    1,398
    Thanks
    0
    Thanked:        0
    Karma Level
    436

    Default Re: Making a background image static HTML

    Put this in-between your "head" tags:

    Code:
    <style type="text/css">
    body {
    	background: transparent url(xxx.jpg) repeat fixed 0% 50%; 
    	-moz-background-clip: initial; 
    	-moz-background-origin: initial; 
    	-moz-background-inline-policy: initial;
    }
    </style>
    Hope this helps

  6. #6
    DF VIP Member BBK's Avatar
    Join Date
    May 2006
    Location
    here
    Posts
    12,422
    Thanks
    234
    Thanked:        128
    Karma Level
    1084

    Default Re: Making a background image static HTML

    Quote Originally Posted by partyman View Post
    Put this in-between your "head" tags
    Same for the javascript one too

  7. #7
    DF VIP Member partyman's Avatar
    Join Date
    Jul 2001
    Location
    Saarf Larndarn
    Posts
    1,398
    Thanks
    0
    Thanked:        0
    Karma Level
    436

    Default Re: Making a background image static HTML

    Scratch what i said before. This is the exact CSS from the myspace page.

    Code:
    <style type="text/css">
    body {	
    background-color:000000;	background-image:url('http://www.reculver1.com/myspace/gfx/reculverbackground.jpg');	background-attachment: fixed;	
    background-position:center center;	
    background-repeat:no-repeat;
    </style>

  8. #8
    DF VIP Member ElWappo's Avatar
    Join Date
    Jun 2004
    Location
    In The Beast
    Posts
    1,230
    Thanks
    0
    Thanked:        0
    Karma Level
    463

    Default Re: Making a background image static HTML

    Ok I got it working with some help from you chaps and my IT helpline (steve). Thanks for helping me everyone. ...much appreciated.

Similar Threads

  1. Making Love
    By ibobsy in forum The Comedy Club
    Replies: 9
    Last Post: 24th February 2005, 11:14 PM
  2. making a crossover cable advice
    By sitinduck in forum Microsoft Consoles
    Replies: 2
    Last Post: 3rd October 2002, 02:28 PM
  3. Has anyone really managed to get an image of a GC game?
    By sanjuro in forum Nintendo Consoles
    Replies: 2
    Last Post: 23rd September 2002, 04:43 AM
  4. making usb drive bootable
    By disastermaster in forum PC Problems
    Replies: 3
    Last Post: 11th September 2002, 06:49 PM

Social Networking Bookmarks

Posting Permissions

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