On Mar 4, 2011, at 4:11 PM, ishi soichi wrote: > hi. I'm developing a site optimized for iPhone. > > The width of the site is crucial. And iPhone needs both vertical and > horizontal settings. > Two settings need to be put into effective automatically, I believe. > > Can I set both settings only with CSS? > > For some reason, I cannot use <meta name="viewpoint".../> in HTML. > I need to achieve this without changing html.
There are currently no CSS properties that implement the same as the 'viewport' meta tag in html (Opera people have floated some proposals to the CSS working group though). But have a look at media queries to streamline the rendering of the site so that it fits (better) for Mobile Safari. http://www.w3.org/TR/css3-mediaqueries/ http://www.broken-links.com/2011/02/21/using-media-queries-in-the-real-world/ http://www.alistapart.com/articles/responsive-web-design/ Philippe -- Philippe Wittenbergh http://l-c-n.com/ ______________________________________________________________________ css-discuss [[email protected]] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
