Book Image

Web Design Blueprints

Book Image

Web Design Blueprints

Overview of this book

The book delivers simple instructions on how to design and build modern Web using the latest trends in web development. You will learn how to design responsive websites, created with modern Flat User Interface design patterns, build deep-scrolling websites with parallax 3D effects, and roll-your-own single-page applications. Finally, you'll work through an awesome chapter that combines them all. Each chapter features actual lines of code that you can apply right away.
Table of Contents (12 chapters)
Web Design Blueprints
Credits
About the Author
About the Reviewer
www.PacktPub.com
Preface
Index

Next up, the CSS


Our style sheet will be helpful in some areas, and there is some static styling that we can do here keep the code as lightweight as possible.

Let's start by adding selectors for our sky, ground, sun, rocket, earth, and ground DIV elements. These will have some child selectors to style as well, and we will go through them in this order:

#sky{}
#ground{}
#sun{}
#rocket{}
#earth{}
#ground{}

In the sky selector, add the overflow:hidden attribute. The sun selector will have the attributes of a fixed position 100px from the top and left and a font-size value of 5px. The sun selector has three I child elements; give the I element a font-size value of 12em.

Give the first child of the sun selector a relative position of 57px left and a font-size value of 13em. Give the second child a relative position of -60px left and 2 px from the top and a font-size of 14em. This will look like the following sample:

#sky{
    overflow:hidden;
}
#sun{
    position:fixed;
    top:100px;
    left:100px...