The second line of the CSS style is where the fun is at. This will be fairly consistent for all the examples and won't be mentioned again in example notes. The first line of the CSS style specifies the div's height, width, and border. (Background image tiling or repetition is default.) For live public pages, you would generally have the style in a CSS style tag or import it from an external CSS file. GIF, JPG, and PNG images can be used for background images. Those are indicated within the sections where they are described.īackground images can be tiled, positioned in a specific location, stretched to fill the entire div and, for responsive sites, automatically sized relative to the size of the div. Three of the nine CSS rules are for responsive sites, automatically resizing background images. Depending on the type of website, navigation buttons may be put in a div with a scenic background. An ad may be presented over a muted graph or a logo. Some content may benefit from an underlying background image.Ī poem over a textured background, for example, or an image of a watercolor painting. Any divs on a page can have their own background image.ĭiv content is on top of the div's background image like web page content is on top of its background image. With a div, the background image is constrained within the div. 3 of the 9 CSS rules are for responsive sites, automatically resizing background images.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |