473,323 Members | 1,550 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,323 software developers and data experts.

How to fix, "next, previous," to bottom of browser

114 100+
Can someone please explain what code i need to add to keep a set of links at the bottom of a pop up window?

I need it in a page where people post comments. It is a pop up window, of about 500x400 where peoople post comments, and can read the previous and next ones.

I have tried aligning it to the bottom of the window, in a table using the "space" keys, and the align bottom etc. however what happens is that if someone posts some lines of text or a very long message, and you read the comment, you have to scroll to the bottom of the message for the links to be visible. This is not the solution because if the buttons are at the bottom to begin with, then they go down the same distance after the last line of text.

If i align them to appear right after the last line of text, then if someone posts only a few words or one line, means that the links appear in the middle of page, ie. right after the last line of text agains.

I want a situation, whereby, the buttons are fixed at the bottom of the pop up window, no matter how short or long the message. ie. if the message is long, there can be scroll bars but on opening the pop up commenting windows the "previous next" buttons should always be there.

Just to further clarify, it is a pop up page and it is an .asp page.
Mar 31 '07 #1
3 2273
jhardman
3,406 Expert 2GB
The css style attribute "position: fixed" places an object in a given place in the window regardless of scrolling. I'm not sure what would happen if the text is longer...

Have you tried putting the message in a <textarea>? Another option would be within a frame or iframe.

The HTML forum might know if you can use <div>s for this. Can you make a scrolling div? I don't know, I'm sure I've never tried.

Let me know what works for you.

Jared
Mar 31 '07 #2
karen987
114 100+
Thank you for your reply Jared. I have now found a way to show the table which on opening hte pop up window, keeps the "previous, next" at the bottom.
<html>
<body>
<table height="100%">
<tr>
<td height="95%" colspan="2" valign="top">put the comment in this cell</td>
</tr>
<tr>
<td height="5%" align="center">previous button goes here</td>
<td height="5%" align="center">next buton goes here</td>
</tr>
</table>
</body>
</html>

This is all fine until someone posts text which is longer than the table. You then open the pop up and are confronted with a box of text, with scroll bars. you have to scroll to the bottom of the box to see the "next , previous" buttons.

In other words, my problem is still there, what i want to do is fix this previous , next at the bottom of the pop up. Do you know what i need to do? I'm not html or asp literate and all i know about style sheets is to change the colour code, nothing else.

thanks in advance
Mar 31 '07 #3
jhardman
3,406 Expert 2GB
Thank you for your reply Jared. I have now found a way to show the table which on opening hte pop up window, keeps the "previous, next" at the bottom.
<html>
<body>
<table height="100%">
<tr>
<td height="95%" colspan="2" valign="top">put the comment in this cell</td>
</tr>
<tr>
<td height="5%" align="center">previous button goes here</td>
<td height="5%" align="center">next buton goes here</td>
</tr>
</table>
</body>
</html>

This is all fine until someone posts text which is longer than the table. You then open the pop up and are confronted with a box of text, with scroll bars. you have to scroll to the bottom of the box to see the "next , previous" buttons.

In other words, my problem is still there, what i want to do is fix this previous , next at the bottom of the pop up. Do you know what i need to do? I'm not html or asp literate and all i know about style sheets is to change the colour code, nothing else.

thanks in advance
check out these work ups. The last is the best and most flexible.

Jared
Apr 1 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: joe | last post by:
Can anyone help me out by either telling me how to get to the result i need or by pointing me to some documentation about the following question: A certain query to a database give me eg 100...
2
by: John Smith | last post by:
I have more than 4,000 pieces of email in my Yahoo account. I would like to write a program to download them all. In order to write such a program, I need to know a few things. 1. After I fill...
1
by: midiweb01 | last post by:
Sorry for my bad english here! I try my best. I would like to make a slideshow for my site about paintings. I have four menus: Portraits-landscapes-Still Life-Animals Each Menu has his own...
2
by: TR | last post by:
In an "Abandon Changes" button on my UserPreferences.aspx form, I'd like to redirect back to the page the user was on before coming to the UserPreferences form. It could be any one of my web app's...
1
by: yasin | last post by:
is it possible that pressing "previous page"(back) button of web browser by code ?
5
by: Nick Gilbert | last post by:
Hi, I'm using the asp:Wizard control and on some of the steps, I would only like the user to be able to progess to the next step by clicking an image button. Therefore I would like to be able to...
10
by: craig.keightley | last post by:
I am trying to get the next row within a loop for a script i am developing... I need to display a final table row within the table that i have displayed on the page, but i only want to show it...
1
by: Jeff | last post by:
I need to place a "Previous Page" link on every page within my site and a simple javascript:history.back() will not work because I need it to capture the state of the page when I left it. For...
1
by: charliemears | last post by:
Hi there... How can I limit search results so that there is a "Next 10" and "Previous 10"? thanks for any reply....
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.