| Page 1 of 1 | [ 4 posts ] |
|
Hi there,
I'm studying YUI3 css grid and so far I couldn't figure out what is the yui3-g role? How can it act as a container for the units? Cheers |
|
Hi there,
In a nutshell, YUI 3 Grids sets units to be "inline-block". However, to make inline-block elements truly behave like grid units, you also have to try to collapse whitespace between those units. That's what the yui3-g container does (and that's why you need both). |
|
Hi Evan,
My natural next question is why can't we collapse the whitespace directly from the units? Thank you. Castle |
|
Because the units are designed to contain ordinary HTML divs, paragraphs, lists, tables, etc -- i.e. content where you *don't* want the whitespace collapsed.
|
| Page 1 of 1 | [ 4 posts ] |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group