Feel the Web Standard, the first time div+css

Source: Internet
Author: User
Tags net visual studio
Css|web|web Standard

With the influence of friends Dodo and colleagues, start paying attention to web standards. Weeks 6th in accordance with the standard Dearbook several pages, summed up some of the experience as follows, for future reference:

  • The advantage of the DIV+CSS structure is that it can be done with a piece of display, which is not only saving code but also more control than table.
  • Dodo mentions that there are currently no visual editors that support Web standards. However, Visual Studio.NET to CSS support and provide functionality is good, suitable for my novice. Also, use Web-standard pages, VS. NET also does not add font flags in the middle of the HTML code.
  • If you want some text in a line to have special properties, using Span,span does not break the text.
  • The main difference between class and ID is that class can be referenced. IDS can be controlled using JavaScript.
  • If the site is just a local page change to DIV+CSS structure, in order to maintain compatibility with other pages, you can include a page or table in the Div, but the overall architecture is still needed with div+css to control, donews in the ads used in this way.
  • Font,b such a label do not use, at first a bit awkward, familiar with the span of the style does not matter. Write to CSS for frequently used style
  • Layout mainly by float property, float property only supports left,right and none, so in the page layout, if it is a three-column structure, you need to use div nesting, but the div nesting is much easier than table nesting. However, it is still not convenient to deal with multiple column forms, so I still use table
  • 2 column after the 2 column to be aligned, usually inserted div style= "Clear:both"

Other questions about adaptive heights need to be further studied.



Related Article

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.