rejetto forum
May 25, 2012, 10:51:54 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: This forum is free, you do NOT need to register to post. But you may.
PROBLEMS? QUESTIONS? CLICK HERE!
Fill the survey!
 
   Home   Help Search Login Register  
Pages: 1 2 [3]
  Print  
Author Topic: iPhone template  (Read 12939 times)
0 Members and 2 Guests are viewing this topic.
SamePaul
Experienced poster
***
Offline Offline

Posts: 70


View Profile
« Reply #30 on: May 15, 2011, 01:23:49 PM »

I dont know if it is normal, but the file template/style.css begins with stranges characters :
body {

It's UTF-8 identifier (so called BOM).

For everyone else asking why this doesn't work. Well, it specifically designed for browsers based on WebKit engine (Safary, Chrome). Hence it works only on iPhone and Adnroid smartphones. Don't expect it to work in Mini Opera, Windows Mobile etc.

I personally find this template pretty exciting, but it has to be adapted to CSS3.

And for questions about choosing template. I would propose different solution. Every modern browser support choosing CSS stylesheet according to attribute "media" in <link /> tag.

For example the following code will work just fine, desktop browser will automatically choose "normal.css", but phone browser will use "mobile.css"
Code:
<link href="/template/normal.css" rel="stylesheet" type="text/css" media="screen" />
<link href="/template/mobile.css" rel="stylesheet" type="text/css" media="handheld" />
This will work even with old phones. Even my ancient Sony Ericsson works with it Smiley
Now it's question of layouting desktop version correctly by CSS. Which is not a big deal Wink
Logged
Pages: 1 2 [3]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!


Google visited last this page May 10, 2012, 04:39:01 AM