LebGeeks

A community for technology geeks in Lebanon.

You are not logged in.

#1 April 10 2012

rtp
Member

iphone website

I have a website for an iphone but am having a hard time starting it.

- The first problem is should i do two css or one ? for portrail and landscape
- Should the divs be fix in width or percentage ?
- Should i dig in jquery mobile ?

Offline

#2 April 10 2012

Ayman
Member

Re: iphone website

I think using Jquery mobile or JQtouch frameworks would be very useful in this case.

Offline

#3 April 10 2012

rtp
Member

Re: iphone website

AymanFarhat wrote:

I think using Jquery mobile or JQtouch frameworks would be very useful in this case.

thanks, I have been playing with Jquery mobile, but my main problem is switching from landscape to portrait.

The transitions are straight forward and cute  ... I dont need the headers and stuff since the design isn't like that...

Offline

#4 April 13 2012

darklight555
Member

Re: iphone website

You can use the CSS media queries to determine which CSS stylesheet to load. So you basically create 2 stylesheets: one for portrait and one for landscape and the one right one gets selected by the media query.

http://broadcast.oreilly.com/2010/04/us … -ipad.html

I also highly recommend ZeptoJs as a nice and light-weight alternative to jQuery.

Offline

#5 April 13 2012

rtp
Member

Re: iphone website

ok thanks darklight555 ^_^

Offline

Board footer