/    Sign up×
Community /Pin to ProfileBookmark

Footer always in the bottom(Mozilla and IE)?

Hi,

I have a problem –

  • only Content Part to be scrollable, so i have removed the body scroll for IE and Mozilla…
  • but Scroller is visible in Mozilla not in IE..(i fixed the height to 451px)

    is it possible through javascript?..to fix a Content part to be based on the browsers?

    can anyone please help me on that?

    thanks

    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd“>
    <html xmlns=”http://www.w3.org/1999/xhtml“>
    <head>
    <meta http-equiv=”Content-Type” content=”text/html; charset=iso-8859-1″ />
    <title>Untitled Document</title>
    <style>
    html, body{
    min-height: 100%;
    height: 100%;
    overflow: -moz-scrollbars-none;

    }
    div.contents {
    min-height: 100%;
    height: 100%;

    }

    html>body, html>body #contents {height: auto;}

    body {margin: 0;
    font-family: Arial, sans-serif;
    padding: 0px;

    }

    #main {margin-bottom: 0em;
    height: auto;
    }

    div.contents {
    position: absolute;
    top: 0;
    left: 0;
    }
    div.footer {
    position: absolute;
    bottom: 0;
    }
    div.main {
    margin-bottom: 0em;
    }
    </head>
    </style>

    <body scroll=”no”>
    <div class=”contents”>
    <div class=”main”>
    <!– Header –>
    <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″ height=”90″ bgcolor=”#990000″>
    <tr>
    <td>Header</td>
    </tr>
    </table>
    <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″ height=”25″ bgcolor=”green”>
    <tr>
    <td>subheader</td>
    </tr>
    </table>
    <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″ height=”35″ bgcolor=”yellow”>
    <tr>
    <td>LabelHeader</td>
    </tr>
    </table>
    <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″ height=”400″ bgcolor=”blue”>

    <tr>
    <td width=”1%” bgcolor=”#990000″>&nbsp;</td>
    <td width=”22%”>left</td>
    <td width=”1%” bgcolor=”#CCCCCC”>&nbsp;</td>
    <td width=”76%” bgcolor=”#006699″>
    <div style=”height:451px; overflow-y:scroll; top:0″>
    <p>CONTENT</p>
    <p>aDIDFfFNfnF </p>
    <p>&nbsp;</p>
    <p>FFASF</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>AFGAFA</p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p>AGAGAG</p>
    <p>AGAGA</p>
    <p>AGAGAG</p>
    <p>AG</p>
    <p>AAGA </p>
    </div>
    </td>
    </tr>
    </table>
    </div>
    <div class=”footer”>
    <!– Header –>
    <table width=”100%” border=”0″ cellspacing=”0″ cellpadding=”0″ height=”25″ bgcolor=”red”>
    <tr>
    <td>Footer</td>
    </tr>
    </table>
    </div>
    </div>
    </body>
    </html>

    to post a comment
    JavaScript

    0Be the first to comment 😎

    ×

    Success!

    Help @gmmsk7 spread the word by sharing this article on Twitter...

    Tweet This
    Sign in
    Forgot password?
    Sign in with TwitchSign in with GithubCreate Account
    about: ({
    version: 0.1.9 BETA 7.24,
    whats_new: community page,
    up_next: more Davinci•003 tasks,
    coming_soon: events calendar,
    social: @webDeveloperHQ,
    analytics: Fullres
    });

    legal: ({
    terms: of use,
    privacy: policy
    });
    changelog: (
    version: 0.1.9,
    notes: added community page

    version: 0.1.8,
    notes: added Davinci•003

    version: 0.1.7,
    notes: upvote answers to bounties

    version: 0.1.6,
    notes: article editor refresh
    )...
    recent_tips: (
    tipper: Anonymous,
    tipped: article
    amount: 1000 SATS,

    tipper: Anonymous,
    tipped: article
    amount: 1000 SATS,

    tipper: @Nanditha,
    tipped: article
    amount: 1000 SATS,
    )...