Login
Remember
Register
References
Ranks
Add reference
PHP - Add CSS class to body
0
votes
121
views
added
Mar 26, 2018
in
PHP
by
LC Marshal
Captain
(
25,770
points)
<?
php $aboutpage
=
'about'
;
?>
On body tag
<body class="
<?
php echo $aboutpage
;
?>
">
css
php
addclass
Related reference
DOM manipulation - to hide element when particular class exist
PHP - progress bar based on variable
jQuery - on click and addClass (with CSS transition animation)
PHP - Add HTML on PHP loop element
PHP number_format - Add comma and decimal
PHP - Conditional to show/hide value
PHP - strip_tags() function to strip HTML from string
PHP - substr() function to limit text
lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
All categories
API
(25)
jQuery
(173)
Javascript
(98)
React
(92)
Vue
(25)
Next JS
(10)
JSX
(9)
ES6
(8)
Regex
(6)
PHP
(61)
mySQL
(9)
Drupal
(15)
SCSS
(23)
CSS
(123)
Bootstrap
(22)
Repository
(36)
Software & tools
(38)
Google tools
(27)
Plugins
(13)
Gulp
(9)
NPM
(8)
Node JS
(7)
CMS
(9)
Command-line
(6)
Database
(2)
Domain & hosting
(16)
Elixir
(1)
HTML
(20)
Mobile application
(1)
Networking
(4)
Python
(0)
Server issues
(6)
VM & Remote desktop
(2)
VSCode
(6)
Webpack
(0)
Windows
(8)
XSLT
(5)
Angular JS
(0)
General
(875)
...