Vertical Positioning of Site

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

  1. #1

    Default Vertical Positioning of Site

    Ok, I am stumped! I am a new developer, and I cannot seem to make my sites
    align vertically to the top of the window. I have tried this many times, but
    with no luck. Here is what I am working on now,
    [url]http://69.2.200.145/benson/index.htm[/url], and I want it so the gray background
    cannot be seen at the top or the bottom, only on the sides of the page,
    depending on the resolution. How can I accomplish this task? What is the
    proper code? I've tried a bunch of different thingsm but nothing seems to work!
    Thanks,
    Chuck

    ChuckRWD Guest

  2. Similar Questions and Discussions

    1. 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...
    2. Layer positioning
      I'm building a DHTML menu system but I am having the problem of positioning the layers on different page widths. I know the problem is that I am...
    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. div - relative positioning
      I'm having a tad bit of difficulty understanding how to get to div's to align side-by-side. Very very basic layout here... I have a #header at...
    5. vertical positioning
      Hi, Does anyone have a (relatively) reliable method of positioning a positionable element in the vertical centre (or other proportion) of a...
  3. #2

    Default Re: Vertical Positioning of Site

    Add a margin rule to the body style and set the the top and bottom margins to 0px each.


    jrod49 Guest

  4. #3

    Default Re: Vertical Positioning of Site

    jrod49-
    Thanks! Another question....this will sound stupid, I'm sure, but can you script out how you would add that margin rule to the body style? Thanks,
    Chuck
    ChuckRWD Guest

  5. #4

    Default Re: Vertical Positioning of Site

    You currently have this in your web page:

    <style type="text/css">
    <!--
    body {
    background-color: #333333;
    }
    -->
    </style>

    Change it to:

    <style type="text/css">
    <!--
    body {
    background-color: #333333;
    margin-top: 0px;
    margin-bottom:0px;
    }
    -->

    Glad to help!



    jrod49 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