Professional Web Applications Themes

Background Positioning - Macromedia Dynamic HTML

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 ...

  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. #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

  3. #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

Similar Threads

  1. Background Image with Alpha + background color?
    By trytertqwr in forum HTML & CSS
    Replies: 3
    Last Post: February 17th, 11:14 AM
  2. positioning
    By evropa in forum Macromedia Dynamic HTML
    Replies: 11
    Last Post: October 25th, 05:36 AM
  3. CSS Div Positioning
    By mommatc in forum Macromedia Dynamic HTML
    Replies: 3
    Last Post: September 30th, 06:10 PM
  4. Write Positioning
    By Ken in forum ASP
    Replies: 7
    Last Post: October 24th, 05:54 PM
  5. Matching Jpeg background with Page Background?
    By Lanny Chambers in forum Macromedia Fireworks
    Replies: 0
    Last Post: August 6th, 02:23 AM

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
  •  

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