css - Centre align in php file -


i have following script acting menu page. user's details verified , have option of clicking on 1 of 3 tours. tidy want centralise text. however, far, when centralise text hyperlinks no longer work, says 'move1.php' cannot found, have tried different methods, , solution, if text centralised, of functions on next php script not work. how centralise text not affect php scripts or hyperlinks.

<?php     if (isset($_session['user'])) {  echo "click here see <a href=\"move1.php\">redbus tour 1!</a>"; echo "<br/>"; echo "<br/>"; echo "click here see <a href=\"move2.php\">redbus tour 2!</a>"; echo "<br/>"; echo "<br/>"; echo "click here see <a href=\"move1.php\">redbus tour 3!</a>";    } else {  //no- jump log in page. header("location: login.php"); exit();  } ?> 

try centering css

wrap text in div , align text center

<?php     if (isset($_session['user'])) {  echo "<div style=\"text-align:center\">"; echo "click here see <a href=\"move1.php\">redbus tour 1!</a>"; echo "<br/>"; echo "<br/>"; echo "click here see <a href=\"move2.php\">redbus tour 2!</a>"; echo "<br/>"; echo "<br/>"; echo "click here see <a href=\"move1.php\">redbus tour 3!</a>"; echo "</div>";   } else {  //no- jump log in page. header("location: login.php"); exit();  } ?> 

Comments

Popular posts from this blog

Email notification in google apps script -

c++ - Difference between pre and post decrement in recursive function argument -

javascript - IE11 incompatibility with jQuery's 'readonly'? -