TAILIEUCHUNG - HTML & CSS: The Complete Reference- P13

Tham khảo tài liệu 'html & css: the complete reference- p13', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | 576 Part II Core Style Compatibility CSS 1 2 3 IE 4 Netscape 4 Firefox 1 Opera 4 Safari 1 Notes Support for varying degrees of light or bold beyond simple bold or not bold is generally not implemented by browsers though theoretically printing may support such distinctions. Theoretically application of bold to a font may allow a mapping from one font like Helvetica to a related font like Helvetica Bold or Helvetica Black. In practice such mappings don t happen. height This property sets the height of an element s content region. Syntax height length percentage auto inherit Standard positive length units can be used and pixels px is often the assumed measurement in browsers. Percentage values based on the height of the containing element can also be used. The default value of auto automatically calculates the width of an element based on the height of the containing element and the size of the content. Examples p height 400px width 200px padding 10px border solid 5px div1 height 50 width 50 Compatibility CSS 1 2 3 IE 4 Netscape 4 Firefox 1 Opera 4 Safari 1 Notes The actual size of an object on a browser canvas is not solely defined by the height property as values for borders and padding affect the space taken. For example given the CSS here div1 height 200px padding 30px border solid 20px I r-s r I 1 A fl_ _ir X _ _xl_ __X _ - Chapter 5 CSS Syntax and Property Reference 577 the height of the content itself may be 200px but the overall canvas space consumed is 300px to account for the borders and padding 300 px left This property defines the x horizontal coordinate for a positioned element relative to the left side of the containing element or browser window. Syntax left length percentage auto inherit where length can be specified in the standard units of length such as inches in and so on but is nearly always set in pixels px and percentage corresponds to a percentage of the containing object s dimensions. The default value

TỪ KHÓA LIÊN QUAN
Đã 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.