in your php file:
<?php
srand (microtime()*10000);
$f_contents = file ("secretnet.txt");
$line = $f_contents[array_rand ($f_contents)];
echo "<div class="awesomeText">$line</div>";
?>
In your file: style.css which need to be included as a linked resource on top of your page.
.awesomeText {
color: #000;
font-size: 150%;
}
Here is a quick sample: http://jsfiddle.net/qro9r54t/
solved How do I change the font size of an echo? [closed]