www.webdeveloper.com
Results 1 to 5 of 5

Thread: [RESOLVED] firefox

  1. #1
    Join Date
    Feb 2006
    Posts
    15

    resolved [RESOLVED] firefox

    I have: bgproperties="fixed" in my page, which works fine with IE and not at all with firefox. Can somebody please tell me, how I can get a fixed bg for other browsers as well ?

  2. #2
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    Place this in your head section instead:
    Code:
    <style type="text/css">
    body, html {
    background-attachment:fixed;
    }
    </style>
    54 68 65 42 65 61 72 4D 61 79

  3. #3
    Join Date
    Feb 2006
    Posts
    15
    thanks ever so much!

  4. #4
    Join Date
    Jun 2004
    Location
    England
    Posts
    2,972
    While you're at it, you may as well define all your background properties in the stylesheet.

    Code:
    <style type="text/css">
    body{
    /*
    background: (background-color) (background-image) (background-repeat) (background-attachment) (background-position);
    */
    
    background: white url(someimage.jpg) no-repeat fixed center center;
    
    color: black;
    
    }

  5. #5
    Join Date
    Feb 2006
    Posts
    15

    Thanks!

    :d

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles