CSS Learning 2

Source: Internet
Author: User

1 To use a picture as a background, use Background-image

P.flower {background-image:url (/i/eg_bg_03.gif); padding:20px;}

To tile the picture, use the Repeate



Background-image:url (/i/eg_bg_03.gif);

background-repeat: repeat-y;


Y for vertical, x for horizontal, not for paving, none_repeate for positioning, center,top, etc.

2 text

<style type= "Text/css" >
Body {color:red}
h1 {color: #00ff00}
P.ex {Color:rgb (0,0,255)}

<p> This is an ordinary paragraph. Note that the text of the paragraph is red. The default text color in this page is defined in the body selector. </p>
<p class= "Ex" > This paragraph defines the class= "ex". The text in the paragraph is blue. </p>

CSS Learning 2

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.