Tất cả mọi thứ được làm trung tâm. Kết quả là, bạn sẽ phải rất cẩn thận để tạo ra phong cách cho đoạn văn, tiêu đề của bạn, và nội dung khác để đảm bảo mọi thứ đều liên kết đúng. Trong chương này, chúng tôi sẽ xem xét sự đa dạng của cách mà chúng ta có thể làm cho hấp dẫn | mainbox width 595px height 200px border 1px solid black margin-right auto margin-left auto body text-align center style head body div id mainbox div body html But now of course everything in the document is going to be centered. Here I ve added some content without styling it Everything gets centered. As a result you ll have to be very careful to now create styles for your paragraphs headers and other content to ensure everything is aligned properly. 154 EM zone The Good News Fortunately even though using a hack is an ugly thing by nature this hack isn t terribly harmful and we re able to get the effect we re after a design that is neatly centered on the page. What s more the compatibility factor at this point is very high we re able to display this in all kinds of browsers including Netscape which is pretty cool. 155 zone 12. Styling forms with CSS In this chapter we will look at the variety of ways in which we can make attractive forms for our sites and web applications by using CSS. Forms are an important but unglamorous part of many sites and for web application design much of the client-side development can be taken up with creating usable forms. CSS makes it easier to create attractive forms quickly because once you have developed a default look for forms then you can reproduce that for every form on the site. Styling form elements - what can we change Using CSS we can change many things about the appearance of our forms and the elements within them - either by redefining the html tag that controls these elements or by applying custom classes to them. The form tag In a new document in Dreamweaver insert a form using the Insert toolbar. By default a form doesn t render in any visible way in the web browser - in the Design View in Dreamweaver it displays with a red dashed line so that you can see where the form is on your page. Creating a style that will apply to all forms If you want to create a style that will apply to all forms on any pages that have .