Wednesday, May 15, 2013

How to define a page's size on HTML5?

I'm making a webpage for my iPhone's lock screen. I want to see the page realsize on my computer, so I can get the spacing and stuff right. How can I define my page's height and width?

I know it's pretty basic but I haven't found anything useful after ten minutes searching and guessing. I'm used to HTML4, I've only started learning HTML5 and JavaScript today for this project.
Added (1). If someone could just give me the tag or attribute…
I got 'round the problem by making a 960x640px picture and setting it as the (non-repeating) background, but I'd still like to know the code for future use.

См. статью: How to define a page's size on HTML5?