Web Design Digital Classroom by Jeremy Osborn & Jennifer Smith & AGI Creative Team
Author:Jeremy Osborn & Jennifer Smith & AGI Creative Team
Language: eng
Format: epub
Publisher: Wiley
Published: 2011-03-24T16:00:00+00:00
Review
Questions
1 What is the em measurement when referring to font-size? What are its advantages?
2 Jennifer has defined the paragraph rule in her CSS the following way:
p {
font-family:Baskerville;
}
Is this the best way for her to define her paragraph style? Explain your answer.
3 What is the best way to increase or decrease space between two text blocks (for example, the space between a heading and a paragraph)?
Answers
1 The em as it applies to font-size in CSS is a relative unit of measurement. A unit of 1 em is equivalent to the default font-size of the web browser (traditionally 16 pixels). Because em units are relative, they scale well when resized in a browser. They also allow the designer to link elements such as paragraphs and headings to a specific value in the body. This allows for easy resizing of text if needed.
2 This is not the best way for Jennifer to define her paragraph style. Because fonts defined in a style sheet only appear on the user’s page if they have the font installed on their system, it is best to use a font-stack. A font-stack lists two or more fonts in the preferred order of display (based on their availability on the user’s system). Furthermore, this font-stack should include fonts that are generally accepted as being on most systems.
3 The best way to increase or decrease space between two text blocks is to use margins, padding, or some combination of the two. All CSS elements are based on a box model, and the space outside of the element is controlled by an invisible margin on all four sides. The space inside the element is controlled by invisible padding. In the case of a paragraph that is below a heading, you would only need to set the top or bottom values, not the right or left values.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Content Management | Programming |
User Experience & Usability | User Generated Content |
Web Design | Web Marketing |
Web Services | Website Analytics |
Hello! Python by Anthony Briggs(9373)
The Mikado Method by Ola Ellnestam Daniel Brolund(9307)
Dependency Injection in .NET by Mark Seemann(8859)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(7402)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(7116)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(6250)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(5957)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(5513)
Kotlin in Action by Dmitry Jemerov(4638)
Audition by Ryu Murakami(4099)
Hands-On Full-Stack Web Development with GraphQL and React by Sebastian Grebe(3886)
Functional Programming in JavaScript by Mantyla Dan(3723)
Svelte with Test-Driven Development by Daniel Irvine(2905)
Learning React: Functional Web Development with React and Redux by Banks Alex & Porcello Eve(2838)
WordPress Plugin Development Cookbook by Yannick Lefebvre(2602)
Architecting Modern Java EE Applications: Designing lightweight, business-oriented enterprise applications in the age of cloud, containers, and Java EE 8 by Daschner Sebastian(2558)
Layered Design for Ruby on Rails Applications by Dementyev Vladimir;(2516)
Test-Driven Development with PHP 8 by Rainier Sarabia(2500)
React Native - Building Mobile Apps with JavaScript by Novick Vladimir(2340)