TAILIEUCHUNG - Learning Web Design Third Edition- P24

Learning Web Design Third Edition- P24:Everything you need to know to create professional web sites is right here. Learning Web Design starts from the beginning defining how the Web and web pages work and builds from there. By the end of the book, you'll have the skills to create multi-column CSS layouts with optimized graphic files, and you'll know how to get your pages up on the Web. | The Font Properties System Fonts The font property also allows designers to specify fonts from the operating system of the user s computer or other viewing device. This may be useful when designing a web application that blends in with the surrounding desktop environment. The system font values for the font property are caption used for captioned controls buttons menus etc. icon used to label icons menu used in drop-down menus and menu lists message-box used in dialog boxes small-caption used for labeling small controls status-bar used in window status bars The shortcut font property Specifying multiple font properties for each text element could get repetitive and lengthy so the creators of CSS provided the shorthand font property that compiles all the font-related properties into one rule. font Values font-style font-weight font-variant font-size line-height font-family see also values in System Fonts sidebar inherit Default depends on default value for each property listed Applies to all elements Inherits yes The value of the font property is a list of values for all the font properties we just looked at separated by character spaces. In this property the order of the values is important font style weight variant size line-height font-family At minimum the font property must include a font-size value and a font-family value in that order. Omitting one or putting them in the wrong order causes the entire rule to be invalid. This is an example of a minimal font property value p font 1em sans-serif Once you ve met the size and family requirements the other values are optional and may appear in any order prior to the font-size. When style weight or variant are omitted they will revert back to normal. There is one value in there line-height that we have not seen before. As it sounds it adjusts the height of the text line from baseline to baseline. It appears just after font-size separated by a slash as shown in these examples. h3 font oblique bold small-caps .

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.