HTML and CSS Reference
TABLE 3-3 Popular media query properties
Returns the width of the current browser view. The property supports min/max
Returns the height of the current browser view. The property supports min/max
Returns “portrait” when the value of the height property is greater or equal to the
value of the width property. Otherwise, it returns “landscape.”
The orientation property, for example, allows you to determine (more specifically than with just
width ) whether the page is being viewed in portrait or landscape mode.
In addition, you can use AND and NOT operators to build up expressions as complex as you like
them to be.
CSS is the language used to add graphical styles to HTML pages. It is based on a collection of
commands that select one or more HTML elements and alter their default appearance. You identify
target elements via selectors and style them through a collection of property/value assignments.
In this chapter, you learned how to define selectors and explored the most important properties
you might want to set in order to achieve great results with your pages.
As a developer primarily interested in Windows 8 applications (as opposed to general web
development), you will (probably) be using readymade Windows 8 style sheets and conventions
in most of your work. At any rate, the content of this chapter should have given you the basics to
understand any further CSS feature you encounter along the way.
To complete the introductory part of the topic for web development, let's now have a look at the