I'll include a basic example code; im trying to understand how to add css editing to a php file - within the file. Currently when the webpage opens from the server the editing is not applying.
lets say I want the variable myBirthday in the following code to increase in size and change colour to red, how do i fix this code?
<head>
<title>
countdown
</title>
<style type=”text/css”>
#myBirthday
{
font-size: 100;
color: #FF0000;
}
</style>
</head>
<body>
<h1>
My birthday.
</h1>
<?php
$myBirthday = "10th October 1997";
echo "Tell you a secret, my birthday is " . $myBirthday . <br> "Today is " .date('d-m-y') . ". <br>";
?>
</body>
myBirthdayto any element. Please do this and see if it works.echotoecho '<p id="myBirthday">...</p>';You need to assign the#myBirthdayID to an element on the page with your birthday text in it.