Comments (6)
+1, I understand wanting to support older browsers but that syntax could/should be optional if you only care about supporting, say, modern webkit-based browsers. Thanks for the great lib!
from cssgrid.
I was considering adding this to inuit.css but it's not feasible.
This method assumes your grid is only one row deep. Take the following: (x denotes :last-of-type
)
Works
+-------------------+
| +---+ +---+ +---+ |
| | | | | | x | |
| +---+ +---+ +---+ |
+-------------------+
Doesn't work
+-------------------+
| +---+ +---+ +---+ |
| | | | | | | |
| +---+ +---+ +---+ |
| +---+ +---+ +---+ |
| | | | | | x | |
| +---+ +---+ +---+ |
+-------------------+
The test case for this on inuit.css was the features list where there are several rows of grids in one parent.
However you can drop the .last
class totally if you want. inuit.css does it ;)
H
from cssgrid.
The 1140 CSS Grid requires that all rows be wrapped in a .row
, so calling :last-of-type
or :last-child
within a row is still feasible.
from cssgrid.
inuit.css also relies on .row
(except mine’s called .grids
) but that doesn’t mean the :last-of-type
will be the right-most div
. If you inspect the features list example that I gave you will see what I mean.
from cssgrid.
@csswizardry Ahh I see what you're saying. Unless my understanding is incorrect, 1140 doesn't even support those types of layouts currently! I'll probably be switching over to inuit! Thanks!
from cssgrid.
Oh, erm, sorry to hijack this. Just thought I'd point out potential problems with the :last-of-type
method as I've already tried/researched it :)
Cheers,
Harry
from cssgrid.
Related Issues (7)
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 cssgrid.