• notice
  • Congratulations on the launch of the Sought Tech site

How to develop a reasonable set of CSS reset?

Problem Description

Because each browser's default style is different browser to avoid compatibility problems occur, we began to use CSS RESET way to reset the style, but now found using traditional CSS RESET has been the proliferation of all kinds of code, There are not only redundancy, but also hidden problems.

Another solution is Normalize.css , which is more reasonable than traditional CSS RESET, which unifies the default style of the browser and retains the basic style of the element well. However, since it is not developed by font-familyChinese people, Chinese fonts are not set , and there are still some differences in requirements for some text-related typesetting.

May I ask whether we can combine the advantages of the two, eliminate some problem factors, sort out our own development needs, and formulate a set of our own Base.cssor Reset.css?

Problems it can solve

  1. Unify the effects of all browsers

  2. Solve potential bugs in low browsers

  3. Adapt to multi-terminal response

  4. Make the website backward compatible

  5. Basic files of style library

Problem factor

  1. Is it reasonable to use wildcard brute force reset methods, such as:*{margin:0;padding:0}

  2. Does the use of wildcards really have performance issues as everyone has discussed?

  3. What do you think about the two statements of "style transition reset" and "overall harmlessness"?

  4. For some labels with their own styles (strong, em), should they stick to the original flavor?

  5. What is the most reasonable solution for uniform inner and outer margins? Why?

  6. For the default font settings, do you have any good suggestions to consider responsive?

  7. For the default colors, such as font color, background color, what is the best suggestion?

  8. Is there an optimal reset solution for lists, borders, tables, links, forms, etc.?

  9. There are some resets to the new elements of HTML5?

  10. Or there are some labels to be added?

Please share your experience, post your own CSS RESET code, and talk about why?
I want to summarize and formulate a base.css based on your experience, and then use it as a basic file to expand a style library.


I personally think that Normalize.css is already very useful, and it is enough to define a font.

Tags

Technical otaku

Sought technology together

Related Topic

1 Comments

author

buy lipitor 40mg generic & lt;a href="https://lipiws.top/"& gt;buy generic atorvastatin 40mg& lt;/a& gt; buy atorvastatin paypal

Bsgrrv

2024-03-10

Leave a Reply

+