Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-24-2006, 12:13 PM   PM User | #1
kehers
Regular Coder

 
Join Date: Mar 2006
Location: Nigeria
Posts: 192
Thanks: 0
Thanked 0 Times in 0 Posts
kehers is an unknown quantity at this point
Designing for mobility

Im doing a couple of designs on XHTMl for mobile compatibility. However, due to heaviness, im thinking of finding a way to redirect a viewer who is using a mobile device to a lighter version of the site. Any ideas?
kehers is offline   Reply With Quote
Old 10-24-2006, 03:01 PM   PM User | #2
Masterslave
Regular Coder

 
Masterslave's Avatar
 
Join Date: Dec 2005
Posts: 287
Thanks: 2
Thanked 0 Times in 0 Posts
Masterslave is an unknown quantity at this point
In (X)HTML you can apply a stylesheet to a device:
Code:
<link rel="stylesheet" href="styles.css" type="text/css" media="handheld" />
http://www.w3.org/TR/REC-CSS2/media.html#media-types
__________________
Do you Ubuntu?
Mozilla Firefox!
Masterslave is offline   Reply With Quote
Old 10-25-2006, 08:45 AM   PM User | #3
kehers
Regular Coder

 
Join Date: Mar 2006
Location: Nigeria
Posts: 192
Thanks: 0
Thanked 0 Times in 0 Posts
kehers is an unknown quantity at this point
Yeah, I know about that. And even the
Code:
<meta name="handheldfriendly" content="true">
The problem however is that i want to completely redirect a mobile user to another version of the site instead of changing the syle. The reason being that some part of the site's content shouldnt even show for mobile users at all. i know i could as well use the css to make their display none but since they are already buffered out it would be a waste of bandwidth especially at the user end. Or what do u think?
kehers is offline   Reply With Quote
Old 10-25-2006, 10:51 AM   PM User | #4
Masterslave
Regular Coder

 
Masterslave's Avatar
 
Join Date: Dec 2005
Posts: 287
Thanks: 2
Thanked 0 Times in 0 Posts
Masterslave is an unknown quantity at this point
My choic would be te make another stylesheet, but that's me.

I don't know which user-agents mobile devices are using but if you know them you can check that with PHP for example and redirect them to another map, for example http://mobile.yoursite.com.

The disadvantage of this is when newer mobile browsers are released you have to update your check.
__________________
Do you Ubuntu?
Mozilla Firefox!
Masterslave is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

Forum Jump


All times are GMT +1. The time now is 08:32 AM.


Advertisement
Log in to turn off these ads.