Small Case Study of CSS getting started

Source: Internet
Author: User

I learned something about it two years ago and almost forgot it. I recently picked up basic things at. Is it easy? Insist on sticking to it again. If you want to do one thing well, you must stick to it. Insist on reviewing every day and keeping everything learned every day down. I believe that through time accumulation, the result is a rapid development.

See belowCode:

Demo.html

<HTML>
<Head>
<! -- Introduce the CSS file -->
<LINK rel = "stylesheet" type = "text/CSS" href = "demo.css">
<Title> small case for getting started with CSS </title>
</Head>
<Div class = "style1">

</Div>
</Html>

Demo.css file:

. Style1 {

/* The CSS file is annotated using this definition */
Width: 400px;
Height: 350px;/* Pay special attention to the number of semicolons. You must write a semicolon. If the number of semicolons is missing, the problem may occur */
Border: 1px solid red;
Background-color: Silver;
Margin-left: 100px;
Margin-top: 50px;
Padding-top: 20px;
Padding-left: 30px;
}

Run:

 

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.