You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** * Enable position context for the child*/.parent {
position: relative;
}
/** * Absolutely center the element in its parent * No dimensions are passed to the mixin, so it relies on CSS transforms*/.child-with-unknown-dimensions {
@includecenter;
}
/** * Absolutely center the element in its parent * Width is passed to the mixin, so we rely on a negative margin for the * horizontal axis and CSS transforms for the vertical axis*/.child-with-known-width {
@includecenter(400px);
}
/** * Absolutely center the element in its parent * Height is passed to the mixin, so we rely on a negative margin for the * vertical axis and CSS transforms for the horizontal axis*/.child-with-known-height {
@includecenter($height: 400px);
}
/** * Absolutely center the element in its parent * Width is passed to the mixin, so we rely on a negative margins for both * horizontal axis and vertical axis*/.child-with-known-dimensions {
@includecenter(400px, 400px);
}
text-align
classes may cause some issues... needs testing.Snippet from http://www.sitepoint.com/centering-with-sass/
The text was updated successfully, but these errors were encountered: