Experience using CSS _ CSS/HTML

Source: Internet
Author: User
CSS experience I. CSS Management

I personally think it is important, and it seems that there are few such problems on the Internet.

If the CSS is well managed, it will save a lot of time and trouble to call and define CSS.

Below are some of my accumulated data

First, why external import or link CSS?

Because a webpage has many pages, a lot of CSS will be used (and some of them are repeated). If each page is defined separately, the following is a management method, in the images folder under the index, the CSS folder is the same as the one to facilitate calling and management.

When I started to build a website, most of them had a plan in PS. At this time, we can preliminarily clarify the same part of CSS.

For example, the bottom text

Assume that three styles a, B, and c appear on the homepage.

The sub-page also displays

Define a on the homepage, and then define B, c in a. Then, only a appears in the CSS folder.

However, when the sub-page is imported to a, you can see a, B, and c, and then apply them one by one.

Then, a page is defined with multiple hyperlink styles.

A: link

A: visited

A: hover

B: link

B: visited

B: hover

Replace the previous one.

However, do not use CSS or numbers, such as 123 or ss12.

Although numbers are used, in DW, they are displayed by default. Although the effect on the last page is the same, it looks messy in DW, so ......... it is better to name it with pure letters.

3. About the Row Height

Generally, pixels and % are used to set

But it is best to set it with %,

This is because the pixel display in DW is somewhat different from that on the online page.

% Is set to be the same as that on the webpage.

Look at the figure.

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.