Jump to content

Thoughts and advice on Flexbox design


pctechtv

Recommended Posts

Hi, because of changes to our company I have recently become the web developer again. I enjoy web development, however, when I take 3-5 year breaks, I get rusty. Plus, things change, and new things that I am not up to speed with emerge. This time I have discovered that it a good idea to use Flexbox for responsive design. It looks like some great stuff. However, I am curious to know if I should really let this be what I rely on for a responsive site. Are there cons to working with Flexbox layouts? Thanks

Link to comment
Share on other sites

Flex box is good, but should only be needed when you want a behaviour different than the natural flow of elements. Elements will naturally stack themselves vertically and take the full page width with no styling at all, so it would be pointless to use a flex box if your layout just needs stacked elements as is the case for many modern websites. Flex box is useful when you need elements side by side, when you distribute them horizontally.

The only downside to flex boxes is that they completely ignore the default box model in order to fit things into their place.

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...