[Solved] How do I use PHP to apply css properties? [closed]


This is what you’re asking for, but it isn’t best practice and I wouldn’t recommend it. I would refer you to @nietonfir’s suggestion (despite being a little harsh, he/she is right). Doing mobile stuff in CSS as a part of a responsive design (media queries) is soooooo much better and easier.

<?php
if ($mobile == True){
    echo '<link rel="stylesheet" href="https://stackoverflow.com/questions/21591289/mobile.css" type="text/css">';
}
?>

4

solved How do I use PHP to apply css properties? [closed]