Skip to content

Change from top to bottom margin? #2935

Answered by simonswiss
jsbrain asked this question in Help
Discussion options

You must be logged in to vote

Adam might chime in, but I wouldn't read too much into this - the short answer is: @bradlc build the new website, not Adam 😅

We're trying to standardize our coding style as much as possible across all our products but we're effectively still a fairly "new" team working on different things 👍

My personal preference is to apply margin on top and left only for most situations (in a "left-to-right" scenario), for the following reason:

Each element on a page should be responsible for its own layout. If the incoming element needs vertical spacing between itself and the previous element, it should handle that spacing itself. The previous element should not have to say:

"Hey, I don't want anythin…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@MathGeniusJodie
Comment options

@jsbrain
Comment options

Answer selected by simonswiss
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
3 participants