Results 1 to 6 of 6

Thread: Stop Background Image From Scrolling (Dreamweaver 2004 MX)

  1. #1
    Join Date
    May 2005
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Stop Background Image From Scrolling (Dreamweaver 2004 MX)

    Hi everyone,

    I've only just recently started using Dreamweaver MX 2004 (I used to be on Dreamweaver 4).

    To stop the background from scrolling I just used to put: bgproperties="fixed" and it worked fine.

    But using Dreamweaver MX 2004 doing:
    body {
    background-image: url(bg.gif);
    bgproperties: fixed;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color: #466F8F;
    }

    Doesn't work!! Can anyone help and tell me what to do to stop the background from scrolling??

    Thanks!
    Matt Blank

  2. #2
    Join Date
    May 2005
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Oooh, my post was in vein.

    I search the Internet for hours, and two seconds after posting this I find the result!! So need for help anymore

    For those of you who may want to know how to do this though:

    body {
    background-image: url(bg.gif);
    background-attachment: fixed;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color: #466F8F;
    }

    Thanks anyway,
    Matt Blank

  3. #3
    Join Date
    Oct 2005
    Posts
    41
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    the code below works just fine
    place it between the <head> and </head>

    <STYLE>
    <!--
    BODY {background-attachment: fixed;}
    //-->
    </STYLE>

  4. #4
    Join Date
    Nov 2005
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Lightbulb

    Quote Originally Posted by matt blank
    Hi everyone,

    I've only just recently started using Dreamweaver MX 2004 (I used to be on Dreamweaver 4).

    To stop the background from scrolling I just used to put: bgproperties="fixed" and it worked fine.

    But using Dreamweaver MX 2004 doing:
    body {
    background-image: url(bg.gif);
    bgproperties: fixed;
    margin-left: 0px;
    margin-top: 0px;
    margin-right: 0px;
    margin-bottom: 0px;
    background-color: #466F8F;
    }

    Doesn't work!! Can anyone help and tell me what to do to stop the background from scrolling??

    Thanks!
    Matt Blank
    You can use do this:

    HTML Code:
    <body background="yourbg.jpg" style="background-attachment: fixed">
    Notice the style="background-attachment:fixed"

    If you need any help, ask me!

  5. #5
    Join Date
    Sep 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hey, i just have the same problem, im using MX 2004 also.

    Heres my snipit, i can't stop it from repeating!

    =====================================================

    <tr>
    <td colspan="23" style="width:800px; height:312px; background-image:url(images/index_24.gif); background-position:top center;"><table width="100%" border="0" align="left">
    <tr>
    <td><img src="images/welcome.gif" width="242" height="323"></td>
    <td><h1 class="style1">Obaseki Solicitors </h1>
    <span class="style11">The Obaseki family has a history practicing Law and servicing their local communities for over 100 years. This firm is established by Ms Jennifer Obaseki. AREAS OF PRACTICE We offer a comprehensive legal service in the following areas: </span> <ul class="style9">
    <li> <a href="propertylaw.htm">Property Law </a> <li> <a href="immigration.htm">Immigration Law </a> <li> <a href="humanrights.htm">Human Rights Legislation </a> <li> <a href="civillitigation.htm">Civil Litigation </a> <li> <a href="criminallitigation.htm">Criminal Litigation </a> <li> <a href="familylaw.htm">Family Law </a> <li> <a href="shariahlaw.htm">Shariah Law </a> <li> <a href="businesslaw.htm">Business Law </a></li>
    </ul>
    <span class="style11">We aim to offer an affordable service with excellent standards. </span></td>
    </tr>
    </table></td>
    </tr>

    =====================================================

    anyone help?

  6. #6
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,162
    Thanks
    263
    Thanked 690 Times in 678 Posts

    Default

    style="width:800px; height:312px; background-image:url(images/index_24.gif); background-position:top center; background-attachment: fixed;"
    Daniel - Freelance Web Design | <?php?> | <html>| espaņol | Deutsch | italiano | portuguęs | catalā | un peu de franįais | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

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
  •