Background Positioning

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Background Positioning

    I have an image as a background which I want to be centered. I have provided
    the code at the end of the message.
    I actually want to make it like this macromedia site with a white background
    in the center. But I can't get the full image in the browser window. First I
    gave center in " background-position-y " but that made only the middle part of
    the image visible with the rest of the image going out of the window. So I
    later put 20px there. But now I cant get the lower portion of the image in the
    browser. I just want the page to scroll so that the full image is visible as
    background.

    body {
    background-color: #000000;
    background-image: url(background.png);
    background-repeat: no-repeat;
    background-position-x: center;
    background-position-y: 20px;
    background-attachment: scroll;
    }

    redblue4356 Guest

  2. Similar Questions and Discussions

    1. Positioning pop-up menus
      Is there any reasonable way to get pop up menus in the same position in MSIE and Firefox. cf http://www.webgeekstress.com/eMeter/index_dwtweak.htm:...
    2. positioning
      im trying to move a div tag to the right side, ive tried using "float" but it doesnt work the way i want it to. i tried setting its position as...
    3. CSS Div Positioning
      Anybody know how to cause a DIV to be aligned to the bottom of the page? If you go to: http://www.tilaru.com/NewSite/index.php you'll see that my...
    4. Matching Jpeg background with Page Background?
      In article <bgpgfq$3sh$1@forums.macromedia.com>, "JohnnyA" webforumsuser@macromedia.com wrote: You can't, because (1) JPEG compression almost...
    5. OT-Google positioning
      Forgive the kinda political post. I am posting this for its humor only, not trying to make a statement, and this seems like as good a group as any...
  3. #2

    Default Re: Background Positioning

    We need to see a URL to better help you, but in the meantime you can give this
    a shot:

    body {
    background-color: #000000;
    background-image: url(background.png);
    background-repeat: no-repeat;
    background-position: 50% 50%;
    background-attachment: fixed;
    }

    or, even shorter... ;-)

    body {
    background: #000 url(background.png) 50% 50% no-repeat fixed;
    }


    mzanime.com Guest

  4. #3

    Default Re: Background Positioning

    I haven't yet uploaded my pages so I can't provide a link. Actually I haven't
    provided any images or text in the lower part. Is it because of that the full
    image is not visible. If yes, how can I overcome that coz I won't always
    provide stuff at the lower part.

    redblue4356 Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139