corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Geek Day » Mobile browser (BB, Andriod, iPhone) width


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Mobile browser (BB, Andriod, iPhone) width
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
14th Oct 12 at 17:18   View Garage View User's Profile U2U Member Reply With Quote

Got a website I just want to simplify up by applying a stylesheet for a mobile device... but - what is the ideal width for a mobile browser?

Thanks
Nismo
Member

Registered: 12th Sep 02
User status: Offline
14th Oct 12 at 17:58   View User's Profile U2U Member Reply With Quote

Surely you would just set it to auto so it would work across all mobile platforms?

You could always set the meta viewpoint so it doesn't matter what width you set it at?
ed
Member

Registered: 10th Sep 03
User status: Offline
14th Oct 12 at 18:24   View User's Profile U2U Member Reply With Quote

Just finished a mobile site. Used a fluid design with responsive images.
Dom
Member

Registered: 13th Sep 03
User status: Offline
14th Oct 12 at 18:36   View User's Profile U2U Member Reply With Quote

Responsive layout.
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
15th Oct 12 at 13:36   View Garage View User's Profile U2U Member Reply With Quote

Yeah I'm no web designer, you're gunna have to help me out with this

Our school website has some maximum width set, then if it's below it loads a stylesheet that loads everything once-after-the-other... that's the aim I was looking for...
ed
Member

Registered: 10th Sep 03
User status: Offline
15th Oct 12 at 13:41   View User's Profile U2U Member Reply With Quote

You can't really do that with a mobile though, there are too many different device widths. If you set the width to 100% and design for a portrait layout you've got a good starting point.

Unfortunately it's not as simple as designing to a 960px or 1050px fixed width, so you need to use a few tricks such as responsive images which will resize your images so they don't overflow or even a responsive layout which will display the page correctly no matter what sized device you're working with.
ed
Member

Registered: 10th Sep 03
User status: Offline
15th Oct 12 at 13:44   View User's Profile U2U Member Reply With Quote

Crap - completely misread your post. This should give you some sizes to start with:

http://css-tricks.com/snippets/css/media-queries-for-standard-devices/
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
15th Oct 12 at 13:48   View Garage View User's Profile U2U Member Reply With Quote

Basically if the browser is under 640px, I want to apply a linelar style sheet... does that make sence?
ed
Member

Registered: 10th Sep 03
User status: Offline
15th Oct 12 at 13:55   View User's Profile U2U Member Reply With Quote

You could use this to target devices with a screen smaller than 640px:

@media only screen and (max-device-width:640px) {
/* Over-rides to existing styles to modify page layout */
}
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
15th Oct 12 at 13:58   View Garage View User's Profile U2U Member Reply With Quote

That'll do, then I can use %age widths to keep everything happy mobile wise there.
Whittie
Member

Registered: 11th Aug 06
Location: North Wales Drives: BMW, Corsa & Fiat
User status: Offline
15th Oct 12 at 14:00   View User's Profile U2U Member Reply With Quote

Easier to just stick to a fluid design.. width: 100% etc.

If not, read up on media stuff, should soon sort it.

http://www.w3.org/TR/CSS2/media.html
pow
Premium Member

Avatar

Registered: 11th Sep 06
Location: Hazlemere, Buckinghamshire
User status: Offline
15th Oct 12 at 14:18   View Garage View User's Profile U2U Member Reply With Quote

It's got 3 colums of text as per a customer spec so I just want to load them one after another on a mobile device really...

 
New Topic

New Poll

  Related Threads Author Forum Replies Views Last Post
iphone; people in the know in here please! LeeM Geek Day 16 574
9th Mar 08 at 16:37
by CorsAsh-Sport
 
blackberry storm updated! LeeM Geek Day 52 5036
23rd Dec 08 at 10:36
by Robbo
 
iphones sam-smith Geek Day 18 602
26th Feb 09 at 18:45
by Jambo
 
Official iPhone 4 Thread Bart Geek Day 2123 50602
2nd May 11 at 21:20
by Gary
 
iPad or Playbook Jambo Geek Day 61 2665
6th May 11 at 16:30
by Nismo
 

Corsa Sport » Message Board » Off Day » Geek Day » Mobile browser (BB, Andriod, iPhone) width 28 database queries in 0.0138419 seconds