cjcenizal / flexbox-patterns Goto Github PK
View Code? Open in Web Editor NEWPatterns for using flexbox CSS to build awesome UI components.
Patterns for using flexbox CSS to build awesome UI components.
- flex-grow: 1 indicates how the element expands as its container gets larger. By default, the value is 1. We’ll set it to 1 so that the card will expand as much as possible to fill the container.
- flex-shrink: 1 controls how the element shrinks as its container gets smaller. By default, this value is 0. When we set it to 1, we tell the card to shrink as much as it has to, to fit into its container.
In correct:
The following source code comment is correct.
Link: http://www.flexboxpatterns.com/site-header.
<div class="siteHeader">
<div class="siteHeader__item siteHeaderLogo">
<div class="fa fa-inbox"></div>
</div>
<div class="siteHeader__item siteHeaderButton is-site-header-item-selected">Inbox</div>
<div class="siteHeader__item siteHeaderButton">Sent</div>
<div class="siteHeader__item siteHeaderButton">Trash</div>
<div class="siteHeader__item siteHeaderButton">Settings</div>
</div>
.siteHeader {
display: flex;
padding: 10px;
background-color: #56727C;
}
/* ... */
.siteHeader__item:last-child {
margin-left: auto;
}
No need for sub-sections anymore. :)
Cheers.
A lot of people are likely to just copy and paste your HTML code snippets into their project. Because of this, I would recommend considering accessibility in the HTML (roles, meaningful markup, and so on).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.