TAILIEUCHUNG - HTML cơ bản - p 16

134 Chapter 3: Elements of Style Points and picas are traditional typographic measures. There are 12 points to a pica and 6 picas to an inch. Therefore, a font size of 18 points is equivalent to picas, or .25 inches. Ems and exes are also typographic measures. Like a percentage value, they specify sizes relative to the element’s computed size rather than an absolute number of units. When type was set using individual letters cast in lead alloy, font sets included spacer characters of different sizes. An em-quad was a square space just large enough to contain an uppercase M. Exes. | 134 Chapter 3 Elements of StyLE Points and picas are traditional typographic measures. There are 12 points to a pica and 6 picas to an inch. Therefore a font size of 18 points is equivalent to picas or .25 inches. Ems and exes are also typographic measures. Like a percentage value they specify sizes relative to the element s computed size rather than an absolute number of units. When type was set using individual letters cast in lead alloy font sets included spacer characters of different sizes. An em-quad was a square space just large enough to contain an uppercase M. Exes are squares the size of a lowercase x. Obviously a larger font will have larger ems and exes in absolute terms. However in CSS one em is equivalent to 100 percent of the current font size. To illustrate consider the following three CSS statements main main main font-size medium font-size 1em font-size 100 In a division element with id main the two nested paragraphs with classes first and second will have the same font size measured in pixels if they are in the same font family. If the two paragraphs are of different font families they may appear to have different font sizes. An em measure is only a guideline for font designers who are free to make their letters larger or smaller as they please. Here are some examples blockquote font-size 18pt font-size 16px intro font-size 7mm address font-size Font sizes given in pixels are relative to the browser s viewport and therefore are dependent on the resolution of the reader s display device and the viewer s distance from the display. Pixels are not simple screen dots anymore. However as a rough guide a 17-inch monitor measured diagonally set to a resolution of 1024 by 768 pixels is very close to 72 pixels per inch. Because this is now considered the low end of display screen technology most PC users are looking at a screen with approximately 96 pixels per inch. Mobile and tablet users may have resolutions and .

TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.