Which approach is preferable for creating a grid - flexbox, css-table or inline-block? [closed] - css

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
Which approach is preferable for creating a grid - flexbox, css-table or inline-block?
Or may be each of this technics should be used in specified cases?
If so, in what cases should be they used?

each has benefits and disadvantages.
Flexbox is very useful in many cases, but some browsers still lacks the features.
Tables may sound oldskool, but if you are coding an html mailing, it is still the best way.
I think before starting a project, you should check other projects and search on google what is best for you scope.

Flexbox is becoming the most popular among web developers these days. Websites have been able to get much more responsive on different screen sizes over the last few years which is why using flexboxes is the most popular at this point. It is finally supported on all of the main browsers and provides a good interface for building anything.
Using inline-blocks is still useful however, in different parts of a website, usually with less elements or only two columns, such as a image or an icon next to a body of text.

Related

CSS-Grid instead of <table> [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 4 years ago.
Improve this question
Is it good practice to use CSS display: grid instead of the html tag <table>?
There are many times when <table> in responsive design is difficult to use. Especially for complex shop basket tables and handling colspan etc. However with css-grid it's an easy one.
I see some problems in styling rows like <tr> for table. There are ways with nth-child stuff. What do you think about it?
If you know CSS grid and are comfortable using it, there is no good reason not to use it. Support is good enough CSS grid support at this point
In fact I highly recommend using anything over <table> for layout. Tables should be used for tables with data in it. Flexbox is also a great option depending on the situation. Ideally you would know when CSS grid is appropriate and when flexbox is, or when both can be used in tangent.
In conclusion it is 2018 and tables should be used as little as possible for this purpose. Move towards the future with flexbox and CSS grid.

Why is the new google logo not in CSS? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 7 years ago.
Improve this question
So, I'm learning CSS and came to know that you can create simple images by using CSS. The new google logo is entirely composed of circles and rectangles, so that its size is much lesser than the old one, which is in line with their mission to get google in underdeveloped countries, with slower internet. My question is, won't using CSS for logo be much smaller in size than using an image
According to Google's description of the process they went through redesigning their logo, there's a variant of the image that's only 305 bytes. So they wouldn't gain much by converting it to CSS.
As always there are multiple ways to solve a problem. Trying to recreate the logo in css is one of them but that's not what CSS is for.
There are multiple ways Google could show their logo:
As an image: png, jpg, svg
As a seperate file
Embedded in the html or css document
As a font
As you propose, recreate in html and css
Each of these solutions have their benefits and drawbacks. You only mentioned one benefit but their are so many other things you need to check: performance, platforms, accessibility, ...
In general you will notice that just displaying an image gives the best result.

What are the advantages of Bootstrap over CSS flex model? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
Given that CSS components (buttons etc.) can be used apart from Bootstrap grid system, what are the actual advantages of using Bootstrap over CSS flex model?
I am asking this questions as I always have big problems with margin/padding in Bootstrap 3 as few pixels (15px or so) are added, preventing me to take advantage of the full width of a container. Also, if I try to manually sent the margin to 0 the whole layout is displaced (including outer containers)
One current disadvantage of using flex is that it doesn't work for IE9 or earlier. It's probably a bit soon to be dumping them yet.

Jeet Grid vs. Singularity [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
For a mobile-first website, i need a grid with SASS preprocessor functions. Currently i am using the Bootstrap 3 Grid which works fine but seems to lack flexibility. Especially i do not want to clutter my html with additional css classes like row or column-4.
I found two promising alternatives:
Jeet Grid
Singularity
Both have powerful tools at hand to span columns, change breakpoints, modify gutters, etc. Can you give a short overview of pro's and con's for both?
creator of Singularity here.
Both are fantastic and very similar. Singularity is more focused on just doing grids and little else while Jeet is more of a full-featured framework, not just the grid. Cory, who created Jeet, is great with support as well.
You may also want to look into Susy which has a strong community behind it as well.
Neat isn’t as full featured as any of these other grid systems listed but it is really elegant and simple to use so it might fit your needs.

Using display:table for layout / presentational purposes? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 9 years ago.
Improve this question
Some people think both HTML <table>s and display:table should be used for tabular data exclusively.
I instead think that display:table doesn't have any implicit semantic meaning and that it can be used for layout / presentational purposes, as well as for displaying tabular data.
Is there anything wrong with using display:table for layout purposes? If so can you provide more details?
References to specifications etc. are welcome.
Yes. Markup is markup (and HTML is markup designed to convey semantics). Presentation is presentation.
When I need a shrink-to-fit block element that allows me to vertically center content, then I will use display: table and display: table-cell as needed.
I will not use a <table> to create a page size grid. Instead I will use a CSS framework like Twitter Bootstrap.
However, I will use a one-row/one-cell table is I need it to fix a centering problem that needs to work in older IE browsers that do not support CSS tables.
As a professional developer, I need to get the job done in a timely fashion and sometimes I will add extra mark-up if that what it takes to get the task finished.

Resources