HTML: Adding Radio buttons for "Next" and "Previous" pages?

2008-07-04 3:18 pm
I'm creating a webpage and I have found out how to make it so the viewer can click "next" and be guided to another page. But I don't know how to create a button instead of typing "Next"

My MAIN question though is how do I put "previous" and "next" on the same line at the bottom of the webpage?

So far, I have:
<a href = "page1.html"> previous </a>
<p align = "right"> <a href = "page2.html"> next </a>

But it shows something like this:

Previous........................................................................................
.............................................................................................

(image no dots and at the end of the dots there is the word "next")

Instead of:

Previous..........................................................................

回答 (4)

2008-07-04 5:09 pm
✔ 最佳答案
<TABLE>
<TR>
<TD><FORM METHOD="LINK" ACTION="page1.html"><INPUT TYPE="submit" VALUE="previous"></FORM></TD>
<TD><FORM METHOD="LINK" ACTION="page2.html"><INPUT TYPE="submit" VALUE="next"></FORM></TD>
</TR>
</TABLE>

This will create the "previous" and "next" buttons and both will be on the same line. You might need to adjust the table/cell width, padding and alignments, etc. to make it look exactly the way you want them to.

Hope this helps!
2008-07-04 4:05 pm
It's because <p> tag is displayed as "block" by default.
You can change to "inline" by add style="display:inline" to <p> like:

<a href = "page1.html"> previous </a>
<p style="display:inline" align = "right"> <a href = "page2.html"> next </a>
2008-07-04 4:01 pm
Please add <tr> and </tr> to previous poster's example...

table - table row - table cell
2008-07-04 3:32 pm
<table width ="100%>
<td><a href="page1.html"> previous </a><td>
<td> </td>
<td><a href = "page2.html"> next </a></td>
</table>
Adjust widths to get appearance you want.


收錄日期: 2021-05-03 14:03:14
原文連結 [永久失效]:
https://hk.answers.yahoo.com/question/index?qid=20080704071811AAOThgw

檢視 Wayback Machine 備份