www.webdeveloper.com
Results 1 to 3 of 3

Thread: how to set max screen size for mobile first site

  1. #1
    Join Date
    Jul 2012
    Location
    Vantaa, Finland
    Posts
    125

    how to set max screen size for mobile first site

    Hi,
    I have built a website but have noticed that it doesn't show in blackberry's. I understand that one way to overcome this problem is to make my site mobile first.
    I understand that blacberry's can't read css @media and that one way around the problem is to make the website mobile first.
    How do you set the max screen size to a maximum of 500px with css without using @media? This is the css file as it is now.
    Last edited by tony webb; 03-09-2013 at 07:56 AM.

  2. #2
    Join Date
    Aug 2006
    Posts
    1,905
    The very first line of your CSS, I would think you'd just change that to body {max-width:500px; ... }

    Of course other changes will be necessary, as your default site w/o media queries is larger than 500px, but it seems that's the solution you're looking for.

    By the way I've never made a site for a blackberry, so take this with a grain of salt.

    Dave

  3. #3
    Join Date
    Jul 2012
    Location
    Vantaa, Finland
    Posts
    125
    Thanks for your reply. It looks like I will have to mess around with my htaccess file as the changes didn't work. Worked OK on other mobile simulators.
    I shall leave that for a rainy day.

    Much rather spend my time making the odd bottle of wine out of blackberries.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles