This is the continuation of CSS – intro to flexbox part 3. Previous posts explained what flexbox is and conceptual things (part 1) and flexbox container properties and examples (part 2). This post will focus on explaining the properties of flex items and examples for them. Since flex items properties are only applicable to the specified item, I posted the HTML, CSS code again for easier understanding. Please pay special attention to the classes such as i2, i4 that are specific to the item. HMTL Code CSS Code align-self: flex-end This property aligns the item along the cross axis and READ MORE
Tag: flexbox
CSS – Intro to Flexbox Part 2
This is the continuation of the post – css intro to flexbox part 1. Part 1 mostly focused on explaining conceptual things. In this post, I am going to focus on showing examples for each flexbox property. Note that all the other common css code is in part 1. I wrote necessary code only for each property. justify-content As explained in part 1 post, justify-content tells you how the flex items should be aligned along the main axis. justify-content: center justify-content:center aligns the flex items in the middle of the container but doesn’t do anything for the space between the READ MORE
CSS – Intro to Flexbox Part 1
This is CSS – intro to flexbox part 1. This post will explain what flexbox is and go over important properties along with examples. What is flexblox? Flexbox is a new module in CSS 3 which makes it easy to align elements to one another in different directions and orders. The key idea is to give the container ability to expand and shrink elements so it can use all the space efficiently. Flexbox actually replaces float layouts by using less but more readable and logical code. It changes the way that we build one-dimensional layouts. Flexbox properties Now let’s go READ MORE