I'm learning MUI, and I want to know experienced developers's opinions about choosing the best positioning option between the <Grid/> component from MUI or just use CSS3 Styling (Flexbox and Grid)
I used to work with CSS3 positioning, and it is fine and precise especially in responsiveness. I wanna know if <Grid/> has no problems with that.
Grid internally uses flexbox as mentioned in the official docs
here
Related
While using foundation's tabs what would be the best way to transition the content so it looked like it was sliding left or right? JQuery, MotionUI, or any other ideas?
Foundation Sites currently requires jQuery. So you can still use jQuery.
The best solution is to use MotionUI as it gives you all needed transitions and options and eases the development.
In general it is recommended to prefer CSS before JavaScript as CSS Transitions have a much better performance.
Now in the days of flexbox and grid, floats seem to be very unintuitive way of thinking about styling page layout (at least for me). My question is - what is the crazy logic behind floats?
If you find floats non-intuitive, it's because you're trying to use them for the wrong thing. See this diagram from the CSS 2.2 spec.
Try replicating that with flexbox or grid layouts.
Some Context
I am playing around with Angular-material and trying to see how well it plays with bootstrap. The Angular-material start project shows off some of the cool things it can do, but it seems like it seems like Angular Material still requires a lot of custom CSS for my non-designer skills. Ergo, why I'm trying to see if it's a good idea to try to use bootstrap and angular-material together.
If this is a terrible idea, please let me know.
My Problem
The icons in the side panel of this codepen should be circles, but they are squares! I can see the border-radius property with Chrome debugger tools but I cannot figure out why it is not being honored.
To add to the mystery, when you click one of the items then all of the icons below that do in fact become circles for a moment.
Can someone with more CSS experience than myself tell me what's going on or how I might debug this more completely?
And any feedback about using angular-material + bootstrap together is also much appreciated.
I also experienced this problem using angular, where the border-radius is not honored, when trying to style an element that is part of a ng-repeat. I found that if you apply the style to the child element of the ng-repeat instead it will honor the border-radius property. This is more of a workaround than a solution, as I also don't understand why this happens.
So in your case you could do:
.avatar svg {
border-radius: 50%;
}
First I want to reference this other question, which doesn't quite answer my question. I'm working on a web project which only intends to support evergreen browsers. We're used to using bootstrap, but it seems like we're pulling in a lot of unnecessary CSS Rules given our support matrix.
Are there good/any reasons to use the CSS float property instead of flexbox properties? Is using the float property considered deprecated, for lack of a better word?
To answer your question, float is still useful for its intended purpose: allowing content to wrap around an image or other element.
Some points to consider:
Jake Archibald claims that flexbox should not be used for page layout, due to the fact that content will be rearranged on the page during load on slow connections.
Chris Coyier points to some potential performance problems with too many elements with flexbox (though he is unable to replicate said problems)
Google Developers suggests using flexbox over older layout models
Please someone explain me css positioning properties in easy to understand plain english?
With examples.
I have been struggling to understand how css positioning work in creating a layout and alignment.
A quick search on Google has lead me to this: http://www.barelyfitz.com/screencast/html-training/css/positioning/
While there are many tutorials on CSS positioning such as
http://www.brainjar.com/css/positioning/
http://www.alistapart.com/articles/css-positioning-101/
http://www.tizag.com/cssT/position.php
http://www.mako4css.com/Tutorial.htm
The problem is that there are a number of ways to position elements on a page, you can use float, position relative divs with absolute nested divs, then you have margins and padding, as well as negative margins. Heights and widths in pixels percentages etc. It's not something to learn from a single tutorial but rather experience.
My suggestion to you is install Chrome and use the developer tool on a basic CSS layout, or FireBug in firefox to learn how CSS works on simple layouts, here you can find many styles of CSS layouts to play with http://www.maxdesign.com.au/articles/css-layouts/