css inside if statement
-
hello, i want to execute an if statement but i want that the statemtent executes a css code and not a php code, the part of the code i have to execute inside the statement is this:
<body style="text-align:center"> <div class="popup11" onclick="myFunction11()"><i class='fas fa-star' style='font-size:48px;color:yellow'></i> <span class="popuptext11" id="myPopup11"> <?php echo $spp->current()?><br></span> </div> </body> </html>
so, i tried the following to put it inside the if statement
<body style="text-align:center"> <?php $sample = "<div class="popup11" onclick="myFunction11()"><i class='fas fa-star' style='font-size:48px;color:yellow'></i>" $sample1 = "<span class="popuptext11" id="myPopup11">" $sample3 = "<?php echo $spp->current()?><br></span>" if ($spp != null) { echo $sample echo $sample1 echo $sample3 } else { return } ?> </div> </body> </html>
What would you change here? it would be a huge help
The page I need help with: [log in to see the link]
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘css inside if statement’ is closed to new replies.