Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Add auto to margin CSS code hint #5784

Open
core-ai-bot opened this issue Aug 30, 2021 · 1 comment
Open

[CLOSED] Add auto to margin CSS code hint #5784

core-ai-bot opened this issue Aug 30, 2021 · 1 comment

Comments

@core-ai-bot
Copy link
Member

Issue by stowball
Saturday Jan 04, 2014 at 05:56 GMT
Originally opened as adobe/brackets#6359


The margin property allows the use of the keyword "auto", which is commonly used for centering elements. See https://developer.mozilla.org/en-US/docs/Web/CSS/margin for info


stowball included the following code: https://github.com/adobe/brackets/pull/6359/commits

@core-ai-bot
Copy link
Member Author

Comment by redmunds
Tuesday Jan 07, 2014 at 18:43 GMT


Thanks. We haven't decided yet how to handle shorthand properties, but this is an improvement.

Also, w3.org links (e.g. http://www.w3.org/TR/CSS2/box.html#margin-properties) are better since they are always browser-agnostic.

Merging.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant