Forum Moderators: mack
I want to clarify what I mean by giving an example:
Let's say I've got one line of text on the top of the page. Now I want to display an image on the bottom of the page. I want it as much down as possible, without getting the scrollbar on the right, in spite of the viewer's resolution of his screen.
I hope someone knows how to achieve this?
Thanks in advance!
You might want to use a table and rely on the non-standard height attribute. This will ensure that the image begins right after the text but you might experience difficulties with standard compliant browsers.
Is this what you are looking for?
[cross-browser.com...]
[cross-browser.com...]
It sets the postion of an element regardless of the window size. You can edit the properties to set it to the bottom of the page.
Just change center center to bottom right.
I have to take a closer look at the links you gave me kris, to see if that is working for me.
The link you provided justa, is exactly what I had in mind! It's only too bad it doesn't work in Netscape. And I also want to put a link to another page behind the image (on the bottom on the page). But that didn't work with this script.
If someone knows how to put text on the bottom of a page which operates as a link to another page (without showing the scrollbar on the right), that will work for me too!?
[cross-browser.com...]
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW ¦¦ innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
// -->
</script>
</head><body bgcolor="#FFFFFF">
<table width="100%" border="0" cellspacing="0" cellpadding="0" height="100%">
<tr valign="top" align="center">
<td>Header Content</td>
</tr>
<tr align="center">
<td>Body Content</td>
</tr>
<tr valign="bottom" align="center">
<td>Footer Content - Place your image here!</td>
</tr>
</table>
</body>
</html>
This design is also fluid! Does not depend on resolution.