1 / 6

What is Flexbox in CSS3?

Most developers nowadays responsive web design to make a website look good across devices, platforms, and browsers with a single code base. Cascading Style Sheets (CSS), along with Hypertext Markup Language (HTML) and JavaScript, helps developers to keep websites and web applications responsive. The web developers use CSS as a style language to style and format the documents written in HTML.

Download Presentation

What is Flexbox in CSS3?

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1.  Most developers nowadays responsive web design to make a website look good across devices, platforms, and browsers with a single code base.  Cascading Style Sheets (CSS), along with Hypertext Markup Language (HTML) and JavaScript, helps developers to keep websites and web applications responsive. The web developers use CSS as a style language to style and format the documents written in HTML.  CSS3 – the most recent version of CSS specification – enables web developers to make web page more appealing by using shadows, transitions, animations, gradients, and rounded corners.  At the same time, CSS3 is also designed as a collection of specifications or modules. Each module defines a self-contained set of related features. The CSS Flexible Box Layout Module (Flexbox) makes it easier for web designers to create flexible and responsive layout structure without using multiple layout modes.

  2. Key Elements of Flexbox in CSS3 The Flexbox layout is constituted of two primary elements – flex container and flex items. When the developers work with Flexbox model, they have to create a flex container. The flex container will consist of a number of parent elements. Each parent element can further contain multiple child elements. The developers can further organize the flex container and flex items through a number of properties. They can even divide the properties broadly into two groups – properties for Flex container and properties for flex items.

  3. Important Properties for Flexbox Container The flex-direction property specifies the way flex items are organized inside the flex container. The designers can use the property to layout the flex items in horizontal or vertical direction. The flex-wrap property allows developers to layout the flex items in multiple lines in the flex container. The property further shrinks the items according to the width of the flex container when the items are laid out in a single line.

  4. The flex-flow property can be used as a shorthand property to specify both flex- direction and flex-wrap properties. The justify-content property allows web designers to align the flex items in three distinct ways – flex-start (beginning of the container), flex-end (at the end of the container), and center (in the center of the container). The align-items property can be used for aligning flex items vertically. The developers can set the value of align-items as flex-start to display the flex items at the beginning of the container. Likewise, they can display flex items at the end of the container by setting the value of align-items as flex-end. The align-content property aligns the flex items in rows. The developers can define space between two flex items in a single row by setting the value of align-content property as space-between, space around, center, or stretch.

  5. Content Designed By : Mindfire Solutions

More Related