Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

PHP - Add CSS class to body

0 votes
3 views
added Mar 26 in PHP by LC Marshal Lieutenant (12,590 points)
<?php 
$aboutpage = 'about';
?>

On body tag

<body class="<?php echo $aboutpage; ?>">

Please log in or register to response this reference.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...