If I have certain styles that need to take place upon some php condition, is it valid and good practice to use the style tag inside php scripts ?
if(condition){ echo "<style> .div{display:block} </style>"; } else { echo "<style> .div{display:none} </style>"; } I am thinking that since the tag is not place in the head of the document, it could be a problem ? Or is this a usual way of doing this sort of thing ?
Thank you.