KarterJK wrote:I am still confused as to why the $screenwidth is not a viable php variable? The content is stored in $screenwidth, why then can I not use it for a comparison check? That loses me.
To me its just like a variable submitted by a form to a PHP process.
Do me a favor and run the code you posted above in your browser. Now go up to View > Source. You'll see that the output of your script is not
Rather, the output of your script is this:
Code: Select all
And I still think this is a bad idea. Unless you're writing a web app like Oddpost
or something and can justify resolution-dependent layouts, it's a far better strategy in the end to make a single design that works equally well regardless of resolution.