I'm trying to style a header with content from PHP but I can't seem to get it working.
What styling I'm trying to apply:
.PageCounter h3{
color: white;
text-align: left;
padding-left: 26%;
font-weight: bold;
display: block;
margin-bottom: 50px;
}
What works to style:
<div class="PageCounter">
<h3>You are visitor number: 32423</h3>
</div>
What doesn't work:
<?php
$number = trim(file_get_contents('hits.txt'));
echo "<div class=\"PageCounter\"><h3>You are visit number: " , $number + 1 , "</h3></div>";
?>
How would I get this working?
EDIT: AFAIK the string is in correct syntax as using . to combine the strings instead of , results in the echo not showing at all. (and stop closing my question saying it's been answered by linking something irrelevant)