Streaming live at 10am (PST)

Div block size to match content in size

Is there a way to get a div block or a containers contents to stay centered in the container or div block with out overflowing as it resizes through the different break points.

Of course there is ! You can use Auto Margin , or the beautiful “Flexbox”.

Thanks that should. work any other suggestions would be appreciated

Let us know about what you need and we’ll help ya

1 Like

Do you talk about aspect ratio? keep aspect-ratio of content in all breakpoints?

Like @Jeandcc - maybe add more details / screenshot / examples.

to keep the content of the divblock from flowing out of the div block by the div block adapting in size to the shifting contents within te div block through each braking point or the page shifting in size.