It's kinda hard to explain what I want to achieve... what I want is a container element that:
- Sizes to it's contents
- But only by fixed increments - for example, 150px, 300px, 450px, etc.
So if the contents are 100px wide, the container will be 150px wide. If the contents grow to 170px, the container's size jumps to 300px. Etc. The container will never be, say, 200px wide. Either 150px or 300px - whichever is the smallest that fits the contents.
Is this possible with pure HTML/CSS, or does this necessitate Javascript?