My PHP code has a paragraph that is not being affected by my CSS style, and I can't figure out why. I'm unfamiliar with PHP, so I'd appreciate it if someone could help me troubleshoot this issue. Here's the code:
<html>
<style>
h1 {
font-family:"Arial";
padding: 5px;
color: #1e90ff;
}
p {
font-family:"Arial";
padding-left: 15px;
color: #000;
}
span {
font-family:"Arial";
padding: 15px;
color: #000;
}
#contentwrapper {
width: 750px;
border: 2px solid #666666;
border-radius: 5px;
background-color: #808080;
text-align: center;
}
</style>
<div id="contentwrapper">
<?php
//connect
I REMOVED THE CONNECTION INFO
//query the db
$getnews = mysql_query("SELECT * FROM page_index") or die(mysql_error());
while ($row = mysql_fetch_assoc($getnews))
{
//get data
$title = $row['title'];
$header = $row['header'];
$content= $row['content'];
echo "
<title>$title</title>
";
echo "
<center><h1>$header</h1></center>
";
echo "
<p>$content</p><br><br>
";
}
?>
</div>
</html>
I prefer using the p tag over spans for a specific reason. Any insights would be appreciated. Thank you!