css web sites with dreamweaver mx 2004 - Phần 7

xảy ra, bạn cần phải rõ ràng rõ ràng các yếu tố nổi. Cách ít nhất là phiền hà để làm điều này là thêm một div trống trước khi các yếu tố mà bạn muốn vẫn còn rõ ràng của các phần tử nổi. Div nên có một lớp học áp dụng cho nó. Lớp CSS chỉ đơn giản là: | zone happening you need to explicitly clear the floated element. The least troublesome way to do this is to add an empty div before the element that you wish to remain clear of the floated element. The div should have a class applied to it. The CSS class is simply .clear clear both So the mark-up would look like p class imageleft img src alt Didling church width 200 height 150 p p Lorem ipsum dolor sit amet consectetuer adipiscing elit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed pulvinar faucibus eros. Mauris et pede eu massa dictum eleifend. Nulla in tortor eget nunc condimentum ornare. Praesent sed augue. Vestibulum wisi ante consectetuer at scelerisque pellentesque semper vel libero. Curabitur turpis sem scelerisque a varius eu feugiat sed neque. Cras id urna. Mauris rhoncus sapien non tellus. Nullam dapibus nisl at congue auctor tortor magna mollis metus id aliquet mi turpis a justo. p div class clear div p Lorem ipsum dolor sit amet consectetuer adipiscing elit. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Sed pulvinar faucibus eros. Mauris et pede eu massa dictum eleifend. Nulla in tortor eget nunc condimentum ornare. Praesent sed augue. Vestibulum wisi ante consectetuer at scelerisque pellentesque semper vel libero. Curabitur turpis sem scelerisque a varius eu feugiat sed neque. Cras id urna. Mauris rhoncus sapien non tellus. Nullam dapibus nisl at congue auctor tortor magna mollis metus id aliquet mi turpis a justo. p We are going to use float to line up our images and captions without using a table. First however we need to create the document. Creating the document Structurally what we really have in a photo album is a list of photos so we will create our album as a structured html list. DOCTYPE html PUBLIC - W3C DTD XHTML Transitional EN http TR xhtml1 DTD html xmlns http 1999

Không thể tạo bản xem trước, hãy bấm tải xuống
TÀI LIỆU MỚI ĐĂNG
4    373    1    29-04-2024
Đã 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.