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

PHP - Add CSS class to body

0 votes
added Mar 26 in PHP by LC Marshal Lieutenant (14,830 points)
$aboutpage = 'about';

On body tag

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

Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.