Padding, border and margin in CCS

zhaozj2021-02-16  64

The content and format of the page can be separated by CSS, and this paper describes the process of learning CSS control format this article.

The relationship between Padding, Border, Margin, and Width / Height in CSS is unclear, learned by learning:

Width / height represents the size of the element, the size of the innermost layer; padding represents the distance between the elements to the Border (Border); Border represents the width of the border; margin represents the distance between border to other elements, is the outermost layer.

In addition, Padding, etc. may be defined as soon as possible, or may be defined together. The definition is started from the upper side, and the distance from each side is defined in the clockwise direction.

Place SideBar left on the page, put the content on the right, you can define two DIVs. Sidebar's Left is defined as float, and content's margin-left is equal to the width of Sidebar. For dynamically generated content, the chick shot has a custom masterpage method, which is 1.1, and has not been used on 2.0. However, I have encountered a problem, and after the front of

, ViewState is not working properly. There is no way, only the POSITON of CSS is set to Absolute, :-(

转载请注明原文地址:https://www.9cbs.com/read-15753.html

New Post(0)