Web Design Forum: nightmare with mobile browsers - Web Design Forum

Jump to content

WDF
WDF Premium Memberships Reseller Hosting
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

nightmare with mobile browsers can't get mobile css to work Rate Topic: -----

#1 User is offline   NeilCawse 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 20
  • Joined: 17-February 11
  • Reputation: 0

Posted 26 May 2011 - 12:36 PM

Hi guys,

I'm using the boilerplate template to make a simple 5 page website, I've sorted out most issue cross browser but I'm having a nightmare getting it to display properly on mobile devices, iphone and ipad.

http://neilcawse.co..../wax/about.html

I'm using:
<meta name="viewport" content="width=device-width, initial-scale=1.0"> &
<link rel="stylesheet" media="handheld" href="css/handheld.css?v=2">

but I don't think its using the mobile stylesheet, I've read that iphone uses a different call (http://csswizardry.c...phone-websites/)

The female and male treatment pages aren't displaying properly (.blurb) - I'm get getting a bit confused + angry, could someone point me in the right direction please.

Thanks in advance! (i hope)
0

#2 User is offline   mteam 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,828
  • Joined: 07-November 09
  • Reputation: 247
  • Gender:Male
  • Location:Manchester
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 26 May 2011 - 04:36 PM

tutorial-optimizing-your-website-for-mobile-devices
0

#3 User is offline   mteam 

  • Web Guru
  • PipPipPipPipPip
  • Group: Members
  • Posts: 1,828
  • Joined: 07-November 09
  • Reputation: 247
  • Gender:Male
  • Location:Manchester
  • Experience:Nothing
  • Area of Expertise:Nothing

Posted 26 May 2011 - 09:31 PM

In fact this might be better obviously you'll have to add the stylesheets

<link rel="stylesheet" href="smartphone.css" 
media="only screen and (min-device-width : 320px) 
and (max-device-width : 480px)">

<link rel="stylesheet" href="smartphone-landscape.css" 
media="only screen and (min-width : 321px)">

<link rel="stylesheet" href="smartphone-portrait.css" 
media="only screen and (max-width : 320px)">

<link rel="stylesheet" href="ipad.css" 
media="only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px)">

<link rel="stylesheet" href="ipad-landscape.css" 
media="only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : landscape)">

<link rel="stylesheet" href="ipad-portrait.css" 
media="only screen 
and (min-device-width : 768px) 
and (max-device-width : 1024px) 
and (orientation : portrait)">

<link rel="stylesheet" href="widescreen.css" 
media="only screen and (min-width : 1824px)">

<link rel="stylesheet" href="iphone4.css" 
media="only screen 
and (-webkit-min-device-pixel-ratio : 1.5), 
only screen and (min-device-pixel-ratio : 1.5)">

This post has been edited by mteam: 26 May 2011 - 09:33 PM

0

#4 User is offline   NeilCawse 

  • Forum Newcomer
  • Pip
  • Group: Members
  • Posts: 20
  • Joined: 17-February 11
  • Reputation: 0

Posted 27 May 2011 - 12:23 PM

Thanks for that mteam, very helpful.

I'm sure I can sort this issue out now.

Many Thanks
0

#5 User is offline   Sogo7 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 421
  • Joined: 02-February 11
  • Reputation: 42
  • Gender:Male
  • Location:Camarthen
  • Experience:Intermediate
  • Area of Expertise:Designer/Coder

Posted 28 May 2011 - 01:35 PM

http://www.forum.nok...or_smartphones/

Not tried this on an iPhone but does work with Android
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users