September 25, 2017 at 2:09 pm #260540
The only way I found to max-width a column and keeping it centered was using max-width and margin: 0 auto; on the container.
See my codepen for an example:
Is there a better way of doing this within the properties of CSS Grids?September 25, 2017 at 11:23 pm #260545
Your current solution is the simplest.
I’m not sure why you would want to complicate it by using CSS Grid unless there is a specific layout you are trying to achieve.September 27, 2017 at 7:16 am #260635
yeah margin:0 auto; is going to be the most elegant solution… unless you want content in the other two columns eventually?
You must be logged in to reply to this topic.