There are two borders, with different background colors, no matter which side is higher, the other is higher to achieve adaptive more margin negative effect related articles please follow topic.alibabacloud.com!
1. Margin negative effect
Introduction: There are two borders, with a different background color, regardless of the height of the increase, the other side also become taller
2. CSS absolute Absolute positioning element centering technique
Introduction: Generally, the center of the absolute positioning elements, left:50%;top:50%, negative margin or through transform can also achieve the effect. Find another technique today, using, Top,left,right,bottom value 0, then Magin:auto, you can achieve the center. Reason:
3. Simply talk about the effect of negative margin
Introduction: We use the margin in CSS, but the margin is set to negative, it may not be good to deal with, margin negative value is not hack,margin negative to follow the document flow, if the use of margin negative force an element upward displacement, Then the relevant elements will also be displaced, margin negative can be well compatible with each browser.
4. Deep understanding of margin negative values in CSS _html/css_web-itnose
Summary: Deep understanding of margin values in CSS
5. Deep understanding of margin values in CSS-blue ideal for small matches
Summary: Deep understanding of margin values in CSS-blue ideal for small matches
"Related question and answer recommendation":
JavaScript-three column layout can I use floating + percent?