diff --git a/src/CenterContent/README.mdx b/src/CenterContent/README.mdx index 0fff2537..f035769c 100644 --- a/src/CenterContent/README.mdx +++ b/src/CenterContent/README.mdx @@ -23,7 +23,7 @@ Instead of defining a height, you can also use the `fillParent` prop which will - Hello + Hello
p.height && css` @@ -34,7 +36,8 @@ const Wrapper = styled.div` `; const Content = styled.div` - max-width: ${p => (p.width ? pxToRem(p.width) : '100%')}; + width: ${p => (p.width ? pxToRem(p.width) : 'auto')}; + max-width: 100%; /* Needed for IE11 to contain large items: https://stackoverflow.com/a/42494339 */ flex-shrink: 0;