Creating the Style Sheet

When you create a new Windows Store app, you also get a default style sheet named default.css which is located in the css folder. You can modify this file to control the appearance of your app.

For our app, I’ve modified the default.css to format the appearance of the photo. It appears in the IMG tag like this:

#imgPhoto {    display:block;    margin: 15px auto;    border: 10px solid white;    max-width: 90%;    max-height: 90%;}

Get Windows® 8.1 Apps with HTML5 and JavaScript Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.