i have a .php webpage with the following basic structure

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>index</title>
<style type="text/css">
.style1 {
	background-color: #4BACC6;
}
.style2 {
	background-color: #005AE7;
}
.style3 {
	text-align: center;
	color: #FFFFFF;
	font-family: Arial;
}
.style5 {
	border-width: 0px;
}
</style>
</head>

<body style="background-color: #99CCFF">
<table style="width: 800px" cellspacing="0" cellpadding="0" align="center">
	<tr class="style2">
		<td>
            <table cellspacing="0" cellpadding="0">
	            <tr>
		            ......................
	            </tr>
            </table>		
		</td>
	</tr>
	<tr class="style1">
		<td>
            <table cellspacing="0" cellpadding="0">
	            <tr>
		            .......................
	            </tr>
            </table>			
		</td>
	</tr>
	<tr>
<?php

....................

?>
	</tr>
	<tr class="style2">
		<td class="style3"><strong>..............</strong></td>
	</tr>
</table>
</body>

</html>

the problem is that the HTML portion after PHP code is not rendering according to the 'styles' applied. rather it just shows in plain formatting.
is it so that after the PHP code is parsed, any HTML code would loose its formatting?
also, as you can see i'm trying to put whatever is parsed of PHP into a centered table. but that doesn't happen. it renders without any table.
forgive me for any silly mistakes as i'm newbie to PHP :$

i got it.
thread closed

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.