TAILIEUCHUNG - Learning Web Design Third Edition- P28

Learning Web Design Third Edition- P28: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. | Finally External Style Sheets exercise 13-3 I Making an external style sheet As noted in an earlier tip it is common practice to create an embedded style sheet while designing a site then to move the rules to an external style sheet once the design is finished. We ll do just that for the cabbages style sheet. 1. Open the latest version of . Select and cut all of the rules within the style element but leave the style . style tags because we ll be using them in a moment. 2. Create a new text document and paste all of the style rules. Make sure that no element tags got in there by accident. 3. Save this document as cabbage. css in the same directory as the document. 4. Now back in we ll add an @import rule to attach the external style sheet like this style type text css @import url style Save the file and reload it in the browser. It should look exactly the same as it did when the style sheet was embedded. If not go back and make sure that everything matches the examples. 5. Delete the whole style element and this time we ll add the style sheet with a link element in the head of the document. link rel stylesheet type text css href Again test your work by saving the document and viewing it in the browser. If you want more practice try doing the same for the style sheet for the Black Goose Bistro online menu from Chapter 12 Formatting Text. type text css This identifies the data MIME type of the style sheet as text css currently the only option . You can include multiple link elements to different style sheets and they ll all apply. If there are conflicts whichever one is listed last will override previous settings due to the rule order and the cascade. Importing with @import The other method for attaching external style sheets to a document is to import it with an @import rule in the style element as shown in this example head style type text css @import url http path p font-face Verdana .

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.