I am currently hiding a div based on an if statement. The method I use is, use echo out a css style of display: none
echo
css
display: none
Here is w
Using Php in your CSS (Cascade Style Sheet) is not "proper",
Also, You can use Php in your HTML:
Foo bar
With this code, div block don't appear, (and you don't use it with JavaScript), You can use this for just hidden your div :
> Foo bar