this is a short guide which will help u to add a background image to a website (using a css file).
where "images/bgpic.gif" is path from css file to your background picture, "top" is vertical bg position, "left" is horizontal bg position (for vertical: top, middle, bottom; for horizontal: left, center, right; you can also use percents instead of this values: "50% 50%" means "middle center" for example ), "no-repeat" specifies repeat of your image (if you want to clone the same pattern use repeat-x, repeat-y or repeat-xy to clone your image horizontally, vertically or both.
just add this line to your body style in .css file
that`s it!!
Code:
background: url('images/bgpic.gif') top left no-repeat;
where "images/bgpic.gif" is path from css file to your background picture, "top" is vertical bg position, "left" is horizontal bg position (for vertical: top, middle, bottom; for horizontal: left, center, right; you can also use percents instead of this values: "50% 50%" means "middle center" for example ), "no-repeat" specifies repeat of your image (if you want to clone the same pattern use repeat-x, repeat-y or repeat-xy to clone your image horizontally, vertically or both.
just add this line to your body style in .css file
that`s it!!
Comment