Hi, I've just made a login script for my first website (I'm impressed with me).

But it appears at the top left rather than centrally which to me looks unsightly. Is there a way to align this to centre both horizontally and vertically? I've listed my code below. Any help would be appreciated.

Thanks

<?php
/* Include Files *********************/
session_start(); 
include("database.php");
include("login.php");
/*************************************/
?>

<html>
<title>www.jedeteste.net</title>
<body>
<table border="0" width="730" cellpadding="0" cellspacing="0"> <tr><td><? displayLogin(); ?></td></tr> </table>

</body>
</html>

Recommended Answers

All 2 Replies

does your login.php contain the login form?

wait..

<table align=center width="730" cellpadding="0" cellspacing="0">
<tr>
<td>
<? displayLogin(); ?>
</td>
</tr>
</table>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.