Results 1 to 5 of 5

Thread: Css positioning a div at bottom of window

  1. #1
    Join Date
    Dec 2008
    Posts
    41

    Css positioning a div at bottom of window

    I am trying for a way to make a footer menu attached to the bottom of the browser window, overlapping other content .I am able to replacing table layout css positioning but how can i put my box at the bottom of the page? i want it at the bottom of browser window how can i do that ?can someone help me ?

    thank you

  2. #2
    Join Date
    May 2008
    Posts
    2,389

    Re: Css positioning a div at bottom of window

    try this code
    <style>
    html, body { height: 100%; min-height:100%; height:auto!important; }
    body { margin: 0; padding: 0; background: #d7e3ea; /*right bg */}
    #background { /*left bg */ position: absolute; width: 50%; height: 100%; background: #000000;}
    #content { position: relative; z-index: 1; height: 100%; /* puts content on top of background in stack order */ margin:0px auto; /*to center in IE*/ text-align:center;}
    #mainTable { margin:0px auto; /*to center in IE*/ text-align:center; height: 100%; min-height:100%; width: 1077px; left:-9px; position: relative; background-image:url(images/shaded_bg.jpg); background-repeat:repeat-y; }
    </style>

  3. #3
    Join Date
    Jan 2008
    Posts
    1,521

    Re: Css positioning a div at bottom of window

    if you footer at bottom of window , try this code

    css code

    html, body {
    height:100%;
    }
    #non-footer {
    min-height:100%;
    }
    * html #non-footer {
    height:100%;
    }
    #footer {
    height:50px; (or whatever height you have)
    margin-top:-50px;
    }

    And the markup
    <body>
    <div id="nonfooter">
    All of your page's content - NOT absolutely positioned, but relative or static
    </div>
    <div id="footer">
    the part you want to be sticked to the bottom of the screen/page
    </div>
    </div>

  4. #4
    swapantech1 Guest

    Re: Css positioning a div at bottom of window

    Dear Modifier,

    With due respect, I am pleased to get the CSS code.

    With thanks & regards,

    swapan.

  5. #5
    Join Date
    Feb 2008
    Posts
    1,852

    Re: Css positioning a div at bottom of window

    If you have to keep position absolute, you may try positioning from the top. Assign "position:relative" to your "container" div, and then "position:absolute;bottom:0;" to your "copyright" div. You can check out the following link.

    How to get Image Positioning In CSS

    How to set the Dynamic positioning of an image in JSP

Similar Threads

  1. Black Window on the bottom of Netgear WNCE2001
    By ZaidaB in forum Networking & Security
    Replies: 3
    Last Post: 22-10-2011, 10:36 AM
  2. Utility for mouse cursor positioning
    By Diamond! in forum Windows Software
    Replies: 3
    Last Post: 15-10-2011, 07:24 AM
  3. Nokia E72 GPS Positioning Method
    By Manish M. Singh in forum Portable Devices
    Replies: 3
    Last Post: 27-11-2010, 01:29 AM
  4. How to set the Dynamic positioning of an image in JSP
    By Fragman in forum Software Development
    Replies: 3
    Last Post: 23-09-2009, 01:04 PM
  5. How to get Image Positioning In CSS
    By spuff in forum Software Development
    Replies: 3
    Last Post: 21-09-2009, 10:26 AM

Tags for this Thread

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
  •  
Page generated in 1,715,986,550.99160 seconds with 17 queries