Tham khảo tài liệu 'tự học html và css trong 1 giờ - part 23', công nghệ thông tin, đồ họa - thiết kế - flash phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 196 I LESSON 8 Using CSS to Style a Site Output FIGURE Two floating elements that are aligned vertically. floated Elements The absence of romance in my history will 1 fear detract somewhat from its interest bur if it he Judged useful by those inquirers who desire an exact knowledge of the past as an aid to he interpretation of the future which in the course of human things must resemble if it docs not reflect it I shall be content. In fine I have written my work not as an essay which is to win the applause of the moment but as a possession for all time. The absence of romance in my history will. 1 tear detract somewhat from its interest hut if it be judged useful by those inquirers who desire an exact knowledge ot the past as an aid tn the interpretation of the future which in the course of human things must resemble if it docs not reflect it I shall be content. The absence of romance in my history will I fear detract somewhat from its interest but if it he Judged useful hy those inquirers who desire an exact CSS Positioning If using float to control how elements are laid out doesn t provide the measure of control you re looking for you can use the CSS positioning attributes. To position elements yourself you first have to choose a positioning scheme with the position property. There are four positioning schemes three of which you ll actually use. The four are static relative absolute and fixed. The static scheme is the default. Elements flow down the page from left to right and top to bottom unless you use the float property to change things up. The relative scheme positions the element relative to the element that precedes it. You can alter the page flow to a certain degree but the elements will still be interdependent. The absolute and fixed schemes enable you to position elements in any location you want on the page. The fixed scheme is not well supported so if you want to control where items appear yourself you should use absolute. After you ve picked a .