monks/margin_right
The margin-right CSS property sets the margin area on the right side of an element. A positive value places it farther from its neighbors, while a negative value places it closer.
Values
pub const auto_: #(String, String)
- : The right margin receives a share of the unused horizontal space, as determined mainly by the layout mode that is used. If the values of
margin-leftandmargin-rightare bothauto, the calculated space is evenly distributed. This table summarizes the different cases:Value of {{cssxref(“display”)}} Value of {{cssxref(“float”)}} Value of {{cssxref(“position”)}} Computed value of autoComment inline,inline-block,inline-tableany staticorrelative0Inline layout mode block,inline,inline-block,block,table,inline-table,list-item,table-captionany staticorrelative0, except if bothmargin-leftandmargin-rightare set toauto. In this case, it is set to the value centering the element inside its parent.Block layout mode block,inline,inline-block,block,table,inline-table,list-item,table-captionleftorrightstaticorrelative0Block layout mode (floating element) any table-, excepttable-captionany any 0Internal table-elements don’t have margins, use {{ cssxref(“border-spacing”) }} insteadany, except flex,inline-flex, ortable-*any fixedorabsolute0, except if bothmargin-leftandmargin-rightare set toauto. In this case, it is set to the value centering the border area inside the availablewidth, if fixed.Absolutely positioned layout mode flex,inline-flexany any 0, except if there is any positive horizontal free space. In this case, it is evenly distributed to all horizontalautomargins.Flexbox layout mode
pub fn length(value: monks_of_style.Length) -> #(String, String)
length value of margin-right
pub const revert_layer: #(String, String)