Book Section
-----
TY JavaScript 3rd Ed.
Teach Yourself JS 1.5
Teach Yourself DHTML
Teach Yourself JS 1.3
LLWW: JavaScript

General Section
-----
Discussion Forum
Articles / Tips
JavaScript Links
About the Author
Privacy Policy
Contact Me



Other Sites
-----
Website Workshop
JavaScript Weblog

JavaScript Workshop Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
Apple iPhone 4s, images 3872x2592

 
Post new topic   Reply to topic    JSWorkshop Forum Index -> HTML and Web Design
View previous topic :: View next topic  
Author Message
lantiqo
New member
New member


Joined: 24 Jun 2012
Posts: 9
Location: Stockholm

PostPosted: Mon Jun 25, 2012 12:01 pm    Post subject: Apple iPhone 4s, images 3872x2592 Reply with quote

Wonder how many pixels an image can have in the Apple iPhone 4s. Tried my site today with images that are 3872x2592px.

I had put text over the pictures and saw that the text is presented from the top to the bottom of the images. On other phones and computers, the text is 20% from top to bottom of the picture.

Kind of like the pictures turned up-tight so they would fit on the screen. But the text size was of normal height.

I use this in the HTML code:
Code:
<head>
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
</head>
Back to top
View user's profile Send private message
sohnee
Senior Member
Senior Member


Joined: 17 Jul 2002
Posts: 2077
Location: UK

PostPosted: Tue Jun 26, 2012 8:09 am    Post subject: Reply with quote

The iPhone has a 960-by-640 pixel retina display (321ppi).

Images larger than 960-by-640 may be scaled, thus changing the relative image-to-text-size ratio.
_________________
I also work on... Steve Fenton's Blog and contribute to The Enhance PHP Unit Testing Framework
Back to top
View user's profile Send private message Visit poster's website
lantiqo
New member
New member


Joined: 24 Jun 2012
Posts: 9
Location: Stockholm

PostPosted: Sun Jul 01, 2012 8:46 am    Post subject: Reply with quote

sohnee wrote:
The iPhone has a 960-by-640 pixel retina display (321ppi).

Images larger than 960-by-640 may be scaled, thus changing the relative image-to-text-size ratio.
Ok, is there any computer that is slightly bigger than the iPhone, which also scales images to a smaller size?

In my CSS I use:
Code:
@media screen and (max-width: 480px),(max-height: 480px) {

to get my big pictures disappear in the iPhone
Back to top
View user's profile Send private message
sohnee
Senior Member
Senior Member


Joined: 17 Jul 2002
Posts: 2077
Location: UK

PostPosted: Tue Jul 24, 2012 8:37 am    Post subject: Reply with quote

What is it that you want to do? i.e. what are you trying to achieve?
_________________
I also work on... Steve Fenton's Blog and contribute to The Enhance PHP Unit Testing Framework
Back to top
View user's profile Send private message Visit poster's website
redfeilds18
New member
New member


Joined: 25 Jul 2012
Posts: 1

PostPosted: Wed Jul 25, 2012 11:01 am    Post subject: Reply with quote

Code:
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width; initial-scale=1.0; maximum-scale=1.0; user-scalable=no;">
    <meta name="apple-mobile-web-app-capable" content="yes" />

<style>
#fixed {
  position: fixed;
  width:200px;
  height:200px;
  z-index:1;
  background: rgba(100,0,0,0.5);
}

#scrolling {
  display: block;
  position: absolute;
  top: 100px;
  left: 100px;
  width:200px;
  height:999px;
  background: rgba(0,100,0,1);
}
</style>
</head>

<body>
  <div id="fixed"     ontouchend="alert('touch fixed')"></div>
  <div id="scrolling" ontouchend="alert('touch scrolling')"></div>
</body>


Try using the above code change the width and height!
_________________
Website Development
Back to top
View user's profile Send private message
energybell
New member
New member


Joined: 19 Dec 2012
Posts: 2
Location: new york

PostPosted: Wed Dec 19, 2012 2:59 am    Post subject: Reply with quote

I´m going to use a 1px wide transparent picture @ max-width 480px, but I was not sure if there is a bigger iPhone wider then 480px and if that scale images.
Back to top
View user's profile Send private message
stonjohn4
New member
New member


Joined: 01 Jan 2013
Posts: 1
Location: pasban

PostPosted: Tue Jan 01, 2013 11:36 pm    Post subject: Reply with quote

so when the user clicks on any product, all product information of the product should be displayed in a more prominent larger area at the top. the area should not be visible when it is not needed and have a border round it when it is seen
_________________
pass4sure1Y0-A20 pass4sure1Y0-A20
pass4sure642-617 pass4sure642-617
Back to top
View user's profile Send private message
shalamerylei
New member
New member


Joined: 22 Jan 2013
Posts: 1

PostPosted: Tue Jan 22, 2013 8:24 pm    Post subject: Reply with quote

I also think that Images larger than 960-by-640 may be scaled, but for me, I use iPhone to computer app to do that.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    JSWorkshop Forum Index -> HTML and Web Design All times are GMT - 7 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group
(c) 1997-2002 Starling Technologies and Michael Moncur. Portions (c) Sams Publishing.