Comments (4)
Hey Alan,
Its Gavin i was looking at this layout your snippet indicates a 9 list item and your sketch indicates a 6 item list
I played around with this layout (Went with a 6 block list item). I think the problem your getting is that your not clearing item #2 but when you do clear #2 that you will have a problem with 3,4,5,6 with a white-space line break and i don't have a good solution for that yet...
I did come up with a solution but its not flexible as it relies on absolute positioning to bring item #3 , #4, #5 to top but then if there is meant to be un-equal heights or extra content in #1,2,3,4,5 it will push #6 down.
here is a working example
http://jsfiddle.net/webstuff/Xq3aa/1/
SCSS http://pastebin.com/syFhCQaZ
I think this is a good argument when more html is needed to achieve the desired effect....
from zen-grids.
Thanks Gavin - I'll give that a spin
from zen-grids.
The grid items that are in a single row need to be adjacent siblings in the HTML source.
Right now your first row is: 1, 3, 4, 5 and your second row is 2, 6. As you can see those aren't adjacent siblings (2 is not next to 6 in the source order since 3, 4, and 5 are between them.)
The reason for this is pretty straight-forward. In order to create a new row, you have to take the first element in that row (as determined by HTML source order) and clear the items in the previous row. When you do that, you prevent all following grid items from being able to sit in previous rows (unless you resort to absolute positioning.)
Note, however, that you could still achieve the source order that you want, but you would have to add an additional wrapping element around 1 and 2. Then you would position the wrapping element of 1 and 2 in the first row along with 3, 4 an 5. And on the second row, you'd just have 6.
from zen-grids.
Thanks John!
Yea it's a sticky one - I got around it in the end, but only by cheating and assuming certain things wouldn't change.
The markup is also your work - Drupal's menu block module!
Thanks, and looking forward to catching up soon sometime.
from zen-grids.
Related Issues (20)
- Are you the author of Zen Thems for Drupal? HOT 1
- An in-range update of mocha is breaking the build 🚨 HOT 6
- [Request] npm backport for v1.5?
- An in-range update of eyeglass is breaking the build 🚨 HOT 5
- An in-range update of support-for is breaking the build 🚨 HOT 1
- $box-sizing warning despite no support configured for legacy IE browsers HOT 7
- error importing zen-grids/flow HOT 1
- Float right last item HOT 1
- zen-clear seems to not work with IE7 / IE6 HOT 1
- Setting environment documentation HOT 1
- Second column margin-left miscalculation(?) on a 2 column grid HOT 1
- Cannot activate due to conflict HOT 8
- Replace background grid gradients with svg
- Sass '!global' error with recommended gemfile versions HOT 1
- Which is the substitute of zen-nested-container on zg v2 HOT 1
- Please provide a working example of $zen-gutter-method HOT 3
- px must match the units of the grid width HOT 5
- Add support for responsive layouts with margin-based gutters and calc()
- RTL styles are broken
- problem with grid
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zen-grids.