I'd like to set a table width, to an x amount of size. Depending on the vistors window resolution.
Php cannot use something like this javascript: if ((screen.width>=1024) && (screen.height>=768)) can it?
How can I use php's echo command to do this? I wanted to set a $size = ""; variable, to include into a tables width Like so;
<?php
if (javascript_screensize) { variables } else { etc }
?>
<table width="<?php echo $size ?>"></table>
And so on, anyone give me a few pointers? Or point me to the correct functions to use. Any help would be great 🙂
Thanks,
-- Derrick