I am using the CSS display:none to hide divs in my html code. It works fine for divs that hold general html content and hides the content.
However, if the div happens to hold a PHP echo statement it does not hide the contents.
HTML
<span class="paginationFull"><?php echo $paginationCtrls;?></span>
<span class="paginationMini"><?php echo $paginationCtrlsMob;?></span>
CSS
.paginationFull{display:none}
Essentially, I am looking to show full pagination controls if in desktop and mini pagination controls if 320px - 420px. I thought that CSS display:none would be a nice easy way to do this. Does anyone, know how to accomplish this? Thanks for any help. Andy ;-)
spantags and notdivtags, but php is parsed before html / css so your css should be applied to the content of the echo's regardless if it comes from php or not. - Do you have other classes applied that might interfere?.cssfile, or maybe you didn't include.cssfile to pageheader$pageinationCtrls. Open your browser's developer console to examine the DOM and CSS.