Skip to content
#

center

Here are 87 public repositories matching this topic...

winstondu
winstondu commented Aug 28, 2019

CSS has the ability to allow proportional margin and padding:
https://webplatform.github.io/docs/guides/the_css_layout_model/#Proportional-margins-and-padding-in-the-W3C-box-model

I was wondering if it is possible to implement a similar concept with edges. For example, if I wanted my top margin of a subview to its superview to be 20% of the superview height (i.e. subview.top = superview.top +

Improve this page

Add a description, image, and links to the center topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the center topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.