tailieunhanh - Learning Web Design Third Edition- P29
Learning Web Design Third Edition- P29:Everything you need to know to create professional web sites is right here. Learning Web Design starts from the beginning defining how the Web and web pages work and builds from there. By the end of the book, you'll have the skills to create multi-column CSS layouts with optimized graphic files, and you'll know how to get your pages up on the Web. | Padding scroll When scroll is specified scrollbars are added to the element box to let users scroll through the content. Be aware that when you set the value to scroll the scrollbars will always be there even if the content fits in the specified height just fine. auto The auto value allows the browser to decide how to handle overflow In most cases scrollbars are added only when the content doesn t fit and they are needed. Padding Padding is the space between the content area and the border or the place the border would be if one isn t specified . I find it helpful to add a little padding to elements when using a background color or a border. It gives the content a little breathing room and prevents the border or edge of the background from bumping right up against the text. You can add padding to the individual sides of any element block-level or inline . There is also a shorthand padding property that lets you add padding on all sides at once. padding-top padding-right padding-bottom padding-left Values length measurement percentage auto inherit Default auto Applies to all elements Inherits no padding Values length measurement percentage auto inherit Default auto Applies to all elements Inherits no With the padding-top padding-right padding-bottom and padding-left proper ties you can specify an amount of padding for each side of an element as shown in this example and Figure 14-5 note that I ve also added a background color to make the edges of the padding area apparent . 3em Applying be in lu ihe glasses is lhe niosl labur-in tensive part the process. Nut only du you have to measure place and burnish un each mask but you also need to completely cover the remainder of the glass in heavy paper. Any exposed areas even inside will get scratched by the flying sand so it has to be a pood sea . The only pan of the glass that should be visible is the part that I want frosted. blockquote padding-top 1em padding-right 3em padding-bottom 1em padding-left 3em .
đang nạp các trang xem trước