How CSS sets the background image to repeat horizontally and vertically

Source: Internet
Author: User

How CSS sets the background image to repeat horizontally and vertically:

Setting the horizontal tile of the background picture or vertical tiling is very simple, using both ends of the code, the code is as follows:

Background:url ("Photo.gif") repeat-y;

The above code allows the background image to be tiled vertically.

Background:url ("Photo.gif") repeat-x;

The above code allows the background image to be tiled horizontally.

Very simple, you can refer to the following two articles:

The 1.background-repeat property can be found in the Background-repeat Properties section of CSS.

The 2.background property can be found in the Background Properties section of CSS.

The original address is: http://www.51texiao.cn/div_cssjiaocheng/2015/0606/3426.html

The most original address is: http://www.softwhy.com/forum.php?mod=viewthread&tid=9657

How CSS sets the background image to repeat horizontally and vertically

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.