TAILIEUCHUNG - Learning Web Design Third Edition- P35

Learning Web Design Third Edition- P35: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. | Page Layout Templates Layouts Using Absolute Positioning Absolute positioning can also be used to create a multicolumn page. The advantage is that the order of the source document is not as critical as it is in the float method because element boxes can be positioned anywhere. The disadvantage is that you run the risk of elements overlapping and content being obscured. This makes it tricky to implement full-width elements below columns such as the footer in the previous example because it will get overlapped if a positioned column grows too long. When working with absolute positioning remember that every element you position is removed from the normal flow. If content you expect to be at the bottom of the page is sitting at the very top it s because you positioned and thus removed all the elements above it that were holding it down. This is something to keep in mind while troubleshooting. Two-column with narrow footer Method POSITIONED Layout LIQUID The example in this section creates a right sidebar column using absolute positioning. The resulting layout is shown in Figure 16-12. Note that the footer design has been modified for the sake of simplifying the template full-width footers are problematic as mentioned earlier . Footer appears only under the main content. Figure 16-12. Two-column layout with absolute positioning. 326 Part III CSS for Presentation Page Layout Templates The Markup div id header Masthead and headline div div id main Main article. div A div id extras List of links and news div div id footer Copyright information div Markup Notes This style sheet absolutely positions the extras div element against the right side of the page and 100 pixels down from the top to leave room for the header element. The main content div is given a right margin wide enough to make a space for the newly positioned box. WARNING Because this template places columns a specific pixel measurement from the top it may not be appropriate for pages with headers that may .

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.