CSS file document if resolution_width
Posted: Sun Apr 08, 2012 8:04 am
Hello
I download and install Tera-WURFL TeraWurfl_2.1.5.zip working good.
But a want insert in HTML document CSS style if is mobile device width 128px or 230px using
resolution_width.
I create PHP document with HTML how create PHP code with resolution_width.
I download and install Tera-WURFL TeraWurfl_2.1.5.zip working good.
But a want insert in HTML document CSS style if is mobile device width 128px or 230px using
resolution_width.
I create PHP document with HTML how create PHP code with resolution_width.
- Code: Select all
<?php echo '<?xml version="1.0" encoding="UTF-8"?>'; ?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.0//EN"
"http://www.wapforum.org/DTD/xhtml-mobile10.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Storna o zminnej szerokości</title>
// PHP code if resolution_width 128 insert file1.css if 230 file2.css ?? how create PHP code ????
<link href="file1.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div id="szerokosc">
<ul>
<li>Strona pierwsza</li>
<li>Strona dróga</li>
<li>Strona trzecia</li>
</ul>
</div>
</body>
</html>