Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site Enhanchement - Suggestion #55

Open
rawoke083 opened this issue Dec 24, 2020 · 3 comments
Open

Site Enhanchement - Suggestion #55

rawoke083 opened this issue Dec 24, 2020 · 3 comments

Comments

@rawoke083
Copy link

HI Guys,
I was looking for a BS4/5 alternative came across S.G, I was looking at the main page and code examples, but for the life of me I can't figure out the "system/nomenclature" col-x-y. What does the 2nd number mean ?? I know with BS4/5 there is one number like col-12 or col-md-2 ?

I would suggest to START with the "system/concept/nomenclature" as to WHAT the two numbers mean right at the top of the homepage/examples.

Also it could just be that I am dumb :)

@DavidBruchmann
Copy link

DavidBruchmann commented Dec 24, 2020

In BS the grid is always consisting of 12 parts by default.
In SG you can define the amount of parts by yourself, therefore the second number.
You can divide the whole width in for parts with col-x-4, then you assign the parts like this: col-1-4, col-2-4, col-1-4 where the first number always defines how many parts of the grid shall be used.
If you look in the CSS you'll see that some definitions are used for several CSS-classes, so col-1-6 and .col-2-12 have both a width of 16.667% as 1/6 is the same like 2/12.

@DavidBruchmann
Copy link

DavidBruchmann commented Dec 24, 2020

Beside that BS is now more modern than SG as it's using flexbox instead of floating divs.
This is technically more flexibel and I'd advise to use the grid-system of BS therefore (or something similar, might be even own written CSS).

@matheusdsm
Copy link

matheusdsm commented Mar 24, 2023

Flexbox are so cool bro. Helps a lot!

But, for compatibility issues, using float or a auto margin, are way better.

(yep, in 2023 i came here to say about using flexboxes)

There are so many cases that you need to use flexbox, the way is it; of course.

If u talkin' about grid, flexbox is better, but if the thing is only spacing, use float or margin instead.

Have a css approachment for grid, but are so instable for most of the browsers.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants