Basic CSS Tutorial : Create Multiple Background Images For Website


Basic CSS Tutorial : Create Multiple Background Images For Website. Css with background images, create a website design will be more easy and interesting. We can put a background color on a web page or image as you wish and taste. In this tutorial, we will discuss in detail about the background image and css css multiple background images.
Basic CSS Tutorial : Create Multiple Background Images For WebsiteThis css script can be implemented when we create a website design. In the previous tutorial, I had a lot of use it and some of them are in post here and here. You are curious to know how to create background images on a website simply by using css code ? Just go ahead, read the tutorial below :

Basic CSS Tutorial : Create Multiple Background Images For Website

Css Background Images
To put an image as the background, use the background-image property. Set as background image should be at the same folder as the folder where to save the document css / html it easy for writing. But we can also take pictures of other places on the internet, which in writing should include the address / url is the complete picture.
Example of CSS code untuk membuat background image :


CSS Background Image Property
• Background Repeat
To fill the pages that use images as background, by default placement of the image will repeat (repeat) either vertically or horizontally. But we can change it by using the background-repeat property, by selecting the value:
“Repeat-x” (for horizontal repetition)
“Repeat-y” (for vertical repetition)
“No-repeat” (if you do not want a repetition)
Example of CSS code to create background image repeat :


• Background Size
Images that we use as a background may have a size that does not fit with what we want because that to overcome them, you can set the size of the image using the background-size property.
Example of CSS code to create background image size :

background-size:1350px 500px;

• Background Position
Background-position property defines the initial position when used as a background image. Here’s some background-position property :
top left, top center, top right, center left; center center, center right, bottom left, bottom center, bottom right, x% y% , xpos ypos, xpx ypx
Example of CSS code to create background image position :

background-position:top center;

Css Multiple Background Images
Combining multiple images into one image no longer be done by using image editing software. we can use css multiple background images. With this property, multiple images can be combined into one to generate a new image. We even can also combine animated gif image into it so that the new image is generated that will certainly look like animated images made ​​from software. Interesting, right ?

Let’s continue the discussion. So that the image can be displayed perfectly in accordance with our wishes, some other background properties can be added to it so that the position of the background, repeating background and size can be arranged.
Example of CSS code to create multiple background images :

background-image:url(image-1.jpg), url(image-2.gif), url(image-3.png);
background-repeat:no-repeat ,repeat-x, repeat-y;
background-position:left center,top center, 100px 500px;
background-size: 65px 40px, 20px 50px,100% 100%;

The following examples of the use of css multiple background images :

<title> Basic CSS : Create Multiple Background Images For Website | Tutorial.World.Edu </title>
font-family:Palatino, 'Book Antiqua', Georgia, Garamond, 'Times New Roman', Times, serif;
background-image:url(''), url(''), url(''), url(''), url(''), url(''), url('');
background-repeat:no-repeat,repeat-x,repeat-x, no-repeat, no-repeat, no-repeat,no-repeat;
background-position:top center, 0px 500px, 0px 270px, 300px 150px, 150px 250px, 900px 220px, 300px 420px;
background-size:1350px 500px, 80px 79px, 900px 230px, 210px 96px, 210px 96px, 250px 200px, 50px 50px;
.image a{
<div  class="image"><a href="">Create Multiple Background Images For Website [Basic CSS]</a><br/><a href="">Tutorial.World.Edu</a></div>

The result will be as shown below :
Basic CSS Tutorial : Create Multiple Background Images For WebsiteNow is the time to put into practice what we have learned in this tutorial. Good luck …
Thanks for reading Basic CSS Tutorial : Create Multiple Background Images For Website