FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Aligning buttons?

 


Diablosblizz
Hi, I'm having a little bit of trouble with HTML.

I am using p aligns to put buttons on each side of the page, but I am having some troubles:

Code:
<p align="left"><input type="button" value="Back" onClick="history.back()"></p>

AND

<p align="right"><input type="button" value="Next" onClick="next.php"></p>


I have tried removing the </p> at the end, but that doesn't help. I get one button on one side, and the other button on the other side, but down one <BR>.

But, I would like to remove the <BR> and have it on one line.

I am 100% sure this is possible. Thanks!
ncwdavid
Diablosblizz wrote:
Hi, I'm having a little bit of trouble with HTML.

I am using p aligns to put buttons on each side of the page, but I am having some troubles:

Code:
<p align="left"><input type="button" value="Back" onClick="history.back()"></p>

AND

<p align="right"><input type="button" value="Next" onClick="next.php"></p>


I have tried removing the </p> at the end, but that doesn't help. I get one button on one side, and the other button on the other side, but down one <BR>.

But, I would like to remove the <BR> and have it on one line.

I am 100% sure this is possible. Thanks!


I would say use css. Go learn some. It's very simple.
Diablosblizz
Alright, I already had a little bit of CSS, but I extended my brain. I am now using:

Code:
.left {text-align: left}


And it worked, but it did the same thing is <p align>.. It needs to unbreak. I don't know whats wrong. Thanks for the idea, any others Wink.
ncwdavid
Diablosblizz wrote:
Alright, I already had a little bit of CSS, but I extended my brain. I am now using:

Code:
.left {text-align: left}


And it worked, but it did the same thing is <p align>.. It needs to unbreak. I don't know whats wrong. Thanks for the idea, any others Wink.

What exactly are you trying to do?Whats it for?
Try this:
Code:

<table align="center" cellspacing="0" cellpadding="0" border="0" width="100%">
<tr><td align="left">TEXT</td><td align="right">TEXT</td></tr>
</table>
Diablosblizz
Ah thank you SO MUCH! This worked perfectly, no <BR>! Thank you SO much.

EDIT: I now need to change the page using the buttons. When I use the form action script, it moves one of the buttons down a BR. So, how do I change the page while using the buttons?

Heres what I have so far:

Code:
<input type="button" value="Next" action="html2.php">



That doesn't work, I have also tried the submit type, and again that did not work.

Thanks for any help!
ncwdavid
Diablosblizz wrote:
Ah thank you SO MUCH! This worked perfectly, no <BR>! Thank you SO much.

EDIT: I now need to change the page using the buttons. When I use the form action script, it moves one of the buttons down a BR. So, how do I change the page while using the buttons?

Heres what I have so far:

Code:
<input type="button" value="Next" action="html2.php">



That doesn't work, I have also tried the submit type, and again that did not work.

Thanks for any help!

I not quite sure what you mean there.
Diablosblizz
Never mind, I fixed it. Thank you.
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.