www.webdeveloper.com
Results 1 to 2 of 2

Thread: How high and wide must webpage be.

  1. #1
    Join Date
    Apr 2012
    Posts
    110

    How high and wide must webpage be.

    Hi, I want to put a long rectangular image at the bottom of the page, but now when I put position from top 560px, then I can only see half the image, its under the writing. but the editor screen wont show the whole image.
    Must the page be a certain amount of pixels wide and high. How far position in pixels can I put it from the heading at the top.

    Also, I cant get the background color back. the code is
    body (
    color:#000000;
    background-color:#000000;
    }

  2. #2
    Join Date
    Apr 2011
    Location
    Seattle, WA
    Posts
    264
    First, for the black background, try this:
    Code:
    body {
    color:#000000;
    background:#000000;
    }
    ...you had a parentheses () instead of a curly-brace {}

    As for the image on the bottom, you can try using
    Code:
    background-position:fixed;
    bottom:0;
    in the properties for the image to make it stay put (even when you scroll)

    I also recommend adding a margin to the bottom of whatever other content you have that's the height of the image so that your content will clear the image if you scroll all the way down (so you won't get to the bottom of the page and have text stuck behind the image) -- you can also do this by adding a div that's the same height as the image after the end of all the content.

    And keep in mind, browsers and monitor-sizes vary, so your website needs to adapt to a variety of sizes.

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