Hi,
I am trying to align some text and buttons on the right side of my page. When I put the align tag in normal html format it works fine but if I echo it in PHP script the align doesn't work.
Just to make sure it's not me doing something silly....this is my code
and it still aligns on the left....
If I use a <center> tag, it works fine.....
If I take the line outta PHP script it works fine...
So what is it about PHP that it won't let me Right align???
The only way I can see around this problem is to break my PHP script, add a line of html then start the <?php again....
Surley there is another way....
TIA
I am trying to align some text and buttons on the right side of my page. When I put the align tag in normal html format it works fine but if I echo it in PHP script the align doesn't work.
Just to make sure it's not me doing something silly....this is my code
Code:
echo '<p align="right"> This should be on the right </p>';
and it still aligns on the left....
If I use a <center> tag, it works fine.....
If I take the line outta PHP script it works fine...
So what is it about PHP that it won't let me Right align???
The only way I can see around this problem is to break my PHP script, add a line of html then start the <?php again....
Surley there is another way....
TIA