CSS Learning Notes

Source: Internet
Author: User

1. Some tags have default margin,padding values, and different browser values may be different

Example: h1~h6,dl,p tag: Default margin (Top,bottom and same) value, no default padding value

Ol,ul Tags: default margin-(Top,bottom and same) value with default Padding-left value

TH,TD tag does not have a default margin value and has a default padding value

The form label does not have a default margin,padding value in chrome,firefox,safari,opera,maxthon,ie8.0, but there is a default margin:19px 0px in ie6.0,7.0;

The select tag has a default margin:2px in Chrome,safari,maxthon, and there is no default margin value in opera,firefox,ie6.0,7.0,8.0.

The option tag only has the default padding-left:3px in Firefox;

2.vertical-align

All browsers support the Vertical-align property, which defines the vertical alignment of the baseline of the element within the row relative to the baseline of the row where the element is located.

The value can be xpx, or it can be%,text-top,middle,bottom, which is baseline by default

CSS Learning Notes

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.