StefanKovac / flex-layout-attribute

HTML layout helper based on CSS flexbox specification —
http://progressivered.com/fla/
MIT License
712 stars 57 forks source link

Choose width of main container #13

Closed fluxxus closed 7 years ago

fluxxus commented 7 years ago

Maybe I am missing something obvious (it is probably intentionaly left out), but I believe it would be a good addition.

I would like to choose different widths for the main flex container, along with the option to have it horizontally centered.

The way it is now, it always defaults to 100%(then again, maybe I am missing something). It would be nice to have an option to choose let's say 70% width and center it. Also, maybe to use the already predefined widths for sm-, md- and lg-.

p.s. Almost forgot to add. Thanks for the great library, I am using this in production on two sites I am working on now !

StefanKovac commented 7 years ago

Please check sizing options, particulary predefined widths in pixels for defining element size in pixels. Example for centered container with 720px width: <div layout="column" self="center size-large"> your content here... </div>

Hvala i pozdrav ;)

fluxxus commented 7 years ago

Znao sam da sam nešto promašio! Hvala :)