TAILIEUCHUNG - XML Step by Step- P16

XML Step by Step- P16:Extensible Markup Language, or XML, is currently the most promising language for storing and exchanging information on the World Wide Web. Although Hypertext Markup Language (HTML) is presently the most common language used to create Web pages, HTML has a limited capacity for storing information. In contrast, because XML allows you to create your own elements, attributes, and document structure, you can use it to describe virtually any kind of information from a simple recipe to a complex database | Chapter 9 Displaying XML Documents Using Advanced Cascading Style Sheets 267 Setting the border-color Property By default the borders you create using the border-style property have the same color as the element s current color property setting. You can alter the color of all four borders by assigning the border-color property any of the kinds of color values described in the sidebar Specifying Color Values on page 233. For example the following rule adds solid red borders to all sides of a TITLE element TITLE border-style solid border-color red You can vary the color of the individual borders around an element by assigning border-color four different color values. The values refer to the top right bottom and left borders in that order. For example the following rule assigns solid red borders to the top and bottom of a TITLE element and solid green borders to the left and right of the element TITLE border-style solid border-color red green red green Advanced CSS 9 268 XML Step by Step Setting the Padding Properties Recall from the beginning of the section Setting Box Properties earlier in this chapter that the padding properties add space immediately surrounding an element s content inside of any visible border the element has. Without padding borders appear quite close to the element s text. You can improve the appearance of a border by adding padding. By default the width of the padding area around an element is zero. To add padding to one or more sides of an element you can assign a nonzero value to one or more of the following properties padding-top padding-right padding-bottom padding-left You can assign these properties any of the kinds of size values described in the sidebar Specifying Size Values on page 227. For example the following rule adds padding to the top and bottom of the STANZA element. The width of the padding area is two times the height of the element s text STANZA padding-top 2em padding-bottom 2em You can also specify the width of the padding

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã 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.