TAILIEUCHUNG - Web Programming with HTML, XHTML, and CSS- P6

Web Programming with HTML, XHTML, and CSS- P6: There are a lot of books about designing and building web pages, so thank you for picking up this one. Why do I think it is different? Well, the Web has been around for over a decade now, and during its life many technologies have been introduced to help you create web pages, some of which have lasted, others of which have disappeared. Many books that teach you to write web pages are revisions of earlier versions of the same book and therefore still take the same approach as the previous edition did | Chapter 7 Cascading Style Sheets You can change the appearance of several pages by altering just the style sheet rather than each individual page this is particularly helpful if you want to change your company s colors or the font used for a certain type of element wherever that element appears across the whole site. The style sheet can act as a style template to help different authors achieve the same style of document without learning all of the individual style settings. Because the source document does not contain the style rules different style sheets can be attached to the same document. So you can use the same XHTML document with one style sheet when the viewer is on a desktop computer another style sheet when the user has a handheld device another style sheet when the page is being printed another style sheet when the page is being viewed on a TV and so on. You reuse the same document with different style sheets for different visitors needs. A style sheet can import and use styles from other style sheets making for modular development and good reuse. If you remove the style sheet you make the site more accessible for those with visual impairments because you are no longer controlling the fonts and color schemes. It is fair to say therefore that whenever you are writing a whole site you should be using an external style sheet to control the presentation although as you will see in the next chapter you might use several external style sheets for different aspects of the site. CSS Properties Now that you have learned the background of CSS how to write CSS rules and where you can place those rules the rest of this chapter looks at the properties you can use to affect the presentation of your documents. In particular you will learn the font text border padding and margin properties. The following table shows the main properties available to you from CSS1 and CSS2 all of which you meet in this chapter or Chapter 8. FONT FONT continued TEXT continued TEXT .

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.