TAILIEUCHUNG - CSS Cookbook- P11

Tham khảo tài liệu 'css cookbook- p11', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Now it s time to stylize the dates and add event links in each cell. To reproduce the box date effect seen in most calendars place a border to the right and bottom of the text and float the content to the left. You want the add event links to be close to the dates. Floating the link to the right means the link will be positioned next to the date of the following day. By floating the add event link to the left you are telling the user that the plus sign means add an event for that particular day see Figure 9-13 .date border-right 1px solid black border-bottom 1px solid black font-family Consolas Lucida Console Monaco monospace text-decoration none float left width height background-color white text-align center .addevent display block float left width 1em height 1em text-align center background-color 666 color white font-weight bold text-decoration none Figure 9-13. Styles introduced to the date and add event links Sample Design An Elegant Calendar 475 Please purchase PDF Split-Merge on to remove this watermark. Now it s time to look at how the event listings can be stylized. Because the previous links are floated you need to create a visible break and move the events below the date. Setting the clear property to both achieves this visual break. The clear property is used to indicate which sides of an element should not be positioned next to a floated element. In this case you don t want the left side to run next to the date and add event links. However just in case the design changes in the future and the dates are positioned on the opposite side use a value of both instead of left. Next change the display of the link to block and place padding on the bottom see Figure 9-14 . You re making these changes to prevent multiple events in a table cell from running into each other. Also the padding acts as a nice visual buffer allowing the eye to easily discern between two events .event clear both padding-left 1em padding-bottom .75em .

TỪ KHÓA LIÊN QUAN
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.