Code: Select all
<script language='javascript'>
document.write('<link type="text/css" rel="stylesheet" href="/css/styles.php?width='+screen.width+'" />');
</script>thanks
Moderator: General Moderators
Code: Select all
<script language='javascript'>
document.write('<link type="text/css" rel="stylesheet" href="/css/styles.php?width='+screen.width+'" />');
</script>Code: Select all
body, html { width: #WIDTH; height: 100% text-align: center;}Code: Select all
<link href="styles.css?width=600px" />Code: Select all
RewriteEngine on
RewriteRule ^([a-z]+)\.css$ proxy.php?file=$1 [QSA]Code: Select all
<?php
define('MAX_WIDTH', '600px'); // This might be a constant or GPC such as above $_GET['width']
$buff = file_get_contents($_GET['file']);
$buff = str_replace('#WIDTH', MAX_WIDTH, $buff);
echo $buff; // Send complete CSS for rendering