How to make multiple column like newspaper using css3?
This is one simple way to do it.
You can use the CSS3 multicolumn layout: http://www.w3.org/TR/css3-multicol/
Very limited support though: http://caniuse.com/#feat=multicolumn
Chris made a video on this a while back, but he makes an entire grid system.
I’ve been experimenting in Codepen.
It’s all unprefixed and as @Senff said….has very limited support.
Odd top-margin bug on the contents which I’ve had to ‘hack’…any thoughts?
Great example @Paulie_D.
I think you missed “column” in front of “gap”.
Thanks…so I did. Fixed
Actually the universal selector works (just not on Codepen). I’ve tested it on Safari, Chrome, Opera, Firefox (Mac)
Oh…I know it works **generally** but if I remove the margin-top: 0 from the p tag there is a gap at the top of the first column even with the the universal margin set to 0.
On your example:
– with the universal margin set to 0,
– and with the margin-top: 0 from the p tag removed
Try without using Codepen. :)
Hmmm….must be a Codepen issue then.
You must be logged in to reply to this topic.
Search for Stuff
Browse the Archives
Get the Newsletter
... or get the RSS feed