W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2017

Re: [csswg-drafts] [css-sizing] max-width: 100% while also using width: min-content on container

From: Oriol Brufau via GitHub <sysbot+gh@w3.org>
Date: Thu, 02 Nov 2017 15:59:06 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-341469206-1509638345-sysbot+gh@w3.org>
You can try something like https://jsfiddle.net/sm4tecns/
```css
.container {
  width: max-content;
}
.container, img {
  max-width: 100%;
}
p {
  width: 0;
  min-width: 100%;
}
```


-- 
GitHub Notification of comment by Loirooriol
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/1927#issuecomment-341469206 using your GitHub account
Received on Thursday, 2 November 2017 15:59:11 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 2 November 2017 15:59:12 UTC