How to put a background on the page

How to put a background on the page

Digital Hits: 75
Put the background drawing on the website – five-minute business. Much more time goes on preparation of the image – a selection, adjustment, adding of effects, configuration of several illustrations to one graphic file. Instruction 1. The background attribute is responsible for management of a background. Evenly to fill in the page in one color, use the tag of style in body: . The black background will turn out. If you apply CSS, in head put: 2. By means of a sheaf is set the repeating image. The address is specified in a type of external or internal reference. When using such method important that joints between pictures remained imperceptible, differently the page will look carelessly. In CSS use: . 3. Repetition of the drawing can be managed. background-repeat together with the following elements is responsible for this function: - repeat-x – repetition in horizontal direction; - repeat-y – repetition in vertical direction: - repeat – repetition in both directions; - No-repeat – without repetition. It is set so: 4. The image in the necessary part of the web page helps to arrange background-position. Coordinates can be set by means of the percentage (50% of 75%), centimeters (5cm 5cm), a pixel proportion (200px 400px), a verbal form (left, right, top, center, bottom). For example: the Value of 0% of 0% is equal to top left. 5. The background-attachment property indicates a way of scrolling of images: together with the page (background-attachment: scroll) or not (background-attachment: fixed).

Author: «MirrorInfo» Dream Team

Print