tailieunhanh - Sams Teach Yourself CSS in 24 Hours- P8

Sams Teach Yourself CSS in 24 Hours- P8: Times have changed, thankfully, since those Dark Ages of CSS. All major browsers as well as some minor ones have increased support for Cascading Style Sheets in the latest versions. Web developers are aware of CSS and the vital role they play in designing great Web pages, and presumably you’ve got some idea of how important they are if you’ve bought this book. | 332 Hour 18 Listing Continued .urhc color black vertical-align top A active color black font-weight bold .menubar a hover color white body font-family Garamond Georgia Times Times New Roman serif .inter .lhs color black hi h2 h3 h4. h5 h6 dt .heading color black font-variant small-caps .lhrc a link .lrhc a visited text-decoration none font-weight bolder color black .urhc Hi color white text-align center border none padding 0 5 margin 0px line-height 75px A link font-weight bold color 000066 text-decoration none .lrhc color black .ulhc img border 2px solid white padding-left 15px padding-right i5px .llhc color black hi h2 h3 h4 h5 h6 .heading border-bottom ipx solid white body background-color cca580 background-image url photos feb2002 arizona background-position top right background-repeat no-repeat .vert A visited font-weight bold color 006600 text-decoration none If that was a bit hard to follow don t feel bad that was intentional. On the site I use tables to divide the page into six content cells that can each be styled independently. Vertical and horizontal bars separate these cells and the bars as well as their intersections can also have styles applied to them. The layout is shown in Figure which indicates the class attribute for each cell. The classes have names like urhc for upper right hand corner and lhs for left hand side. Web Design with CSS 333 Figure The layout of done with tables. The current style sheet as given in Listing actually eliminates the bars between the content cells by not giving them a distinct background color but you can t tell that by skimming the style sheet. The style sheet in Listing is really the same as before both produce the same results when applied to the Web page but the second one is easier to understand. Comments make clearer what each section of the style sheet does and the order is much easier to understand. 18 Listing A Better-organized Style

TỪ KHÓA LIÊN QUAN