Nintendo DSi Browser: Difference between revisions

Winmaster (talk | contribs)
m Undo revision 4198 by Nickeilitz (talk) Vandalism?
Jsa005 (talk | contribs)
Added a working example of vertical mode.
Line 80: Line 80:
To active the vertical mode automatically, add one of the following tags between <head></head> :
To active the vertical mode automatically, add one of the following tags between <head></head> :


  <meta name="viewport" content="width=device-width" />
  <meta name="viewport" content="width=device-width">
  <meta name="viewport" content="width=240" />
  <meta name="viewport" content="width=240">


Using device-width will adapt the page to the width of other mobile devices.
Using device-width will adapt the page to the width of other mobile devices.


You can test this mode with the following demo page: [http://www.cashman-productions.fr.nf/dsi/ here] (link dead as of 06/2010)
You can test this mode with the following demo page: [http://www.jsivi.uni.me/ JSiVi] (use DSi or spoof user agent to avoid redirection to PC site)


=== Detect User Agent ===
=== Detect User Agent ===