CSS 3: How to style the background of elements?

promising its symMultiple backgrounds are widely known, but CSS 3 offers even more news that expands the possibilities of styling the background of elements.

However, not everyone has a clear idea of ​​how to effectively use the news, so I will try to do a little analysis of this issue.

Multiple backgrounds

From the Backgrounds and Borders module , the multiple (one could even use the word multilayer ) background next to the image border is the most well-known and undoubtly the most beneficial novelty for web designers. At least I will briefly remind you what it is: It will be possible to enter multiple south africa phone number data images as the background of the element. They will be render in the opposite order than they are list in the property background-image, so the last image (layer) will be at the bottom. This technique applies to all background properties except background-color.

phone number data

The concept of multiple backgrounds can be us to solve. Typical web design problems, when it is necessary to place multiple images on.  The background, usually in such a way that they do not overlap each other. In the following example, two images will be add to the background of the element. One up, one down. Both will repeat in the horizontal direction.

 

The principle of creating multiple

The disadvantage of small images repeating on the background. Of an element is precisely the constant repetition of one and the same motif.  As this greatly ruces the aesthetic impression, as we can see. The user perceives the background as a whole and is rarely tempt to view the details of the motif . A partial solution can be two background layers that will blend. The top layer would be a repeating motif. It would  translucent, so its sha would be determin by the bottom unleashing the power of b2b personalization layer, which cnfortunately did not work very well for me. On the one hand. I chose a too bold theme, which is not suitable for the background.

Of the website, and on the other hand, I “wallpaper” the bottom bw lists layer with a brightly color image.  So the resulting background is so colorful; perhaps it would appeal. To children or members of the hippie movement. But it does not fit into a classic web presentation, so I add another example try and quality.

Scroll to Top