Reply
CSS Layout for iPhone and other wireless browsers
Old 05-31-2008, 01:06 AM CSS Layout for iPhone and other wireless browsers
aschecht's Avatar
Extreme Talker

Posts: 180
Name: A
Location: San Jose, CA
Trades: 5
I'm planning to make a version of my site (www.icdmeister.com/site/) that's optimized for use on wireless browsers like the iPhone and smartphones.

My plan is to eliminate the left nav menu and footer altogether and to make the header a lot smaller.

Is it possible to use the same page with a different CSS file that includes a hidden attribute for the sections I'd like to eliminate?

Any resources or tips for creating CSS for these devices?

Andrew
aschecht is offline
Reply With Quote
View Public Profile Visit aschecht's homepage!
 
 
When You Register, These Ads Go Away!
Old 05-31-2008, 01:19 AM Re: CSS Layout for iPhone and other wireless browsers
Super Talker

Posts: 107
Name: Sandy
Trades: 0
Hi Andrew,

I found this code for your html file for iphones:

Code:
<link media=”only screen and (max-device-width: 480px)”
        href=”iPhone.css” type=”text/css” rel=”stylesheet” />
__________________
Sandy K
sandyk3 is offline
Reply With Quote
View Public Profile
 
Old 05-31-2008, 01:33 AM Re: CSS Layout for iPhone and other wireless browsers
aschecht's Avatar
Extreme Talker

Posts: 180
Name: A
Location: San Jose, CA
Trades: 5
Thanks Sandy. That looks useful. I've come across that before in some of my web searching. I wonder if I'll need to make separate stylesheets for several different mobile devices or if it makes more sense to design one that will be sufficient for all of them (but not optimal for any of them). I want to make the site iPhone friendly but don't want to exclude the non-iPhone wireless Internet PDA/phones.

A.
aschecht is offline
Reply With Quote
View Public Profile Visit aschecht's homepage!
 
Old 05-31-2008, 01:33 AM Re: CSS Layout for iPhone and other wireless browsers
Arenlor's Avatar
Ultra Talker

Posts: 462
Name: Jerod Lycett
Location: /home/arenlor
Trades: 0
http://www.w3.org/TR/CSS21/media.html#media-types handheld seems to meet your need.
I think you'll also find WAP and WML something to look into. http://www.w3schools.com/WAP/default.asp
__________________
PHP Code:
<?php echo "Hello World"?>
HTML Code:
<html><head><title>Hello World</title></head><body><p>Hello World</p></body></html>
Arenlor is offline
Reply With Quote
View Public Profile Visit Arenlor's homepage!
 
Old 05-31-2008, 02:48 PM Re: CSS Layout for iPhone and other wireless browsers
Super Talker

Posts: 107
Name: Sandy
Trades: 0
I also found this on about.com:

http://webdesign.about.com/od/wireless/a/aa070307.htm
__________________
Sandy K
sandyk3 is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to CSS Layout for iPhone and other wireless browsers
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.10295 seconds with 13 queries