The background-image property allows you to specify an image to be displayed in the background. The background-color property can also be set to transparent, which makes any elements underneath it visible instead. The follow commands all have the same output: background-color: blue There are a number of ways to specify the color. The background-color property fills the background with a solid color. But in IE7 and IE6 the background does not include the border, as illustrated below.īackground does not extend to the borders in IE7 and IE6. This works as it should in Firefox, Safari and Opera, and now in IE8. One important thing to note is that the background accounts for the contents of the element, including the padding and border. These properties can all be merged into one short-hand property: background. background-attachment: determines whether the image scrolls with the page.background-repeat: determines whether the image is tiled.background-position: specifies where to place the image in the element’s background.background-image: calls an image for the background.background-color: specifies the solid color to fill the background with. ![]() We have five main background properties to use in CSS 2. Working With Background in CSS 2 Overview CSS: Innovative Techniques and Practical Solutions.Backgrounds In Web Design: Examples And Best Practices. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |