{"payload":{"allShortcutsEnabled":false,"fileTree":{"css-cookbook":{"items":[{"name":"balloon-sq2.jpg","path":"css-cookbook/balloon-sq2.jpg","contentType":"file"},{"name":"balloons.jpg","path":"css-cookbook/balloons.jpg","contentType":"file"},{"name":"balloons2.jpg","path":"css-cookbook/balloons2.jpg","contentType":"file"},{"name":"breadcrumb-navigation--download.html","path":"css-cookbook/breadcrumb-navigation--download.html","contentType":"file"},{"name":"breadcrumb-navigation.html","path":"css-cookbook/breadcrumb-navigation.html","contentType":"file"},{"name":"card--download.html","path":"css-cookbook/card--download.html","contentType":"file"},{"name":"card.html","path":"css-cookbook/card.html","contentType":"file"},{"name":"center--download.html","path":"css-cookbook/center--download.html","contentType":"file"},{"name":"center.html","path":"css-cookbook/center.html","contentType":"file"},{"name":"columns-flexbox--download.html","path":"css-cookbook/columns-flexbox--download.html","contentType":"file"},{"name":"columns-flexbox-wrapping--download.html","path":"css-cookbook/columns-flexbox-wrapping--download.html","contentType":"file"},{"name":"columns-flexbox-wrapping.html","path":"css-cookbook/columns-flexbox-wrapping.html","contentType":"file"},{"name":"columns-flexbox.html","path":"css-cookbook/columns-flexbox.html","contentType":"file"},{"name":"columns-grid--download.html","path":"css-cookbook/columns-grid--download.html","contentType":"file"},{"name":"columns-grid.html","path":"css-cookbook/columns-grid.html","contentType":"file"},{"name":"columns-multicol--download.html","path":"css-cookbook/columns-multicol--download.html","contentType":"file"},{"name":"columns-multicol.html","path":"css-cookbook/columns-multicol.html","contentType":"file"},{"name":"cookbook-template--download.html","path":"css-cookbook/cookbook-template--download.html","contentType":"file"},{"name":"cookbook-template.html","path":"css-cookbook/cookbook-template.html","contentType":"file"},{"name":"grid-wrapper--download.html","path":"css-cookbook/grid-wrapper--download.html","contentType":"file"},{"name":"grid-wrapper.html","path":"css-cookbook/grid-wrapper.html","contentType":"file"},{"name":"list-group-badges--download.html","path":"css-cookbook/list-group-badges--download.html","contentType":"file"},{"name":"list-group-badges.html","path":"css-cookbook/list-group-badges.html","contentType":"file"},{"name":"media-objects--download.html","path":"css-cookbook/media-objects--download.html","contentType":"file"},{"name":"media-objects-fallback--download.html","path":"css-cookbook/media-objects-fallback--download.html","contentType":"file"},{"name":"media-objects-fallback.html","path":"css-cookbook/media-objects-fallback.html","contentType":"file"},{"name":"media-objects.html","path":"css-cookbook/media-objects.html","contentType":"file"},{"name":"pagination--download.html","path":"css-cookbook/pagination--download.html","contentType":"file"},{"name":"pagination.html","path":"css-cookbook/pagination.html","contentType":"file"},{"name":"playable.js","path":"css-cookbook/playable.js","contentType":"file"},{"name":"sharp-account_box-24px.svg","path":"css-cookbook/sharp-account_box-24px.svg","contentType":"file"},{"name":"split-navigation--download.html","path":"css-cookbook/split-navigation--download.html","contentType":"file"},{"name":"split-navigation.html","path":"css-cookbook/split-navigation.html","contentType":"file"},{"name":"sticky-footer--download.html","path":"css-cookbook/sticky-footer--download.html","contentType":"file"},{"name":"sticky-footer-flexbox--download.html","path":"css-cookbook/sticky-footer-flexbox--download.html","contentType":"file"},{"name":"sticky-footer-flexbox.html","path":"css-cookbook/sticky-footer-flexbox.html","contentType":"file"},{"name":"sticky-footer.html","path":"css-cookbook/sticky-footer.html","contentType":"file"},{"name":"styles.css","path":"css-cookbook/styles.css","contentType":"file"}],"totalCount":38},"":{"items":[{"name":".github","path":".github","contentType":"directory"},{"name":"alt-style-sheets","path":"alt-style-sheets","contentType":"directory"},{"name":"animation-frames-timing-function","path":"animation-frames-timing-function","contentType":"directory"},{"name":"assets","path":"assets","contentType":"directory"},{"name":"backdrop","path":"backdrop","contentType":"directory"},{"name":"box-alignment","path":"box-alignment","contentType":"directory"},{"name":"contain","path":"contain","contentType":"directory"},{"name":"counter-style-demo","path":"counter-style-demo","contentType":"directory"},{"name":"css-cookbook","path":"css-cookbook","contentType":"directory"},{"name":"css-text","path":"css-text","contentType":"directory"},{"name":"cssom","path":"cssom","contentType":"directory"},{"name":"display","path":"display","contentType":"directory"},{"name":"editable-samples-2","path":"editable-samples-2","contentType":"directory"},{"name":"editable-samples","path":"editable-samples","contentType":"directory"},{"name":"feature-queries","path":"feature-queries","contentType":"directory"},{"name":"flexbox","path":"flexbox","contentType":"directory"},{"name":"flow","path":"flow","contentType":"directory"},{"name":"font-features","path":"font-features","contentType":"directory"},{"name":"grid","path":"grid","contentType":"directory"},{"name":"houdini","path":"houdini","contentType":"directory"},{"name":"howto","path":"howto","contentType":"directory"},{"name":"images","path":"images","contentType":"directory"},{"name":"inline-formatting","path":"inline-formatting","contentType":"directory"},{"name":"is-where","path":"is-where","contentType":"directory"},{"name":"layout","path":"layout","contentType":"directory"},{"name":"learn","path":"learn","contentType":"directory"},{"name":"logical","path":"logical","contentType":"directory"},{"name":"masking","path":"masking","contentType":"directory"},{"name":"min-max-clamp","path":"min-max-clamp","contentType":"directory"},{"name":"modules","path":"modules","contentType":"directory"},{"name":"moz-context-properties","path":"moz-context-properties","contentType":"directory"},{"name":"multicol","path":"multicol","contentType":"directory"},{"name":"object-fit-basics","path":"object-fit-basics","contentType":"directory"},{"name":"object-fit-gallery","path":"object-fit-gallery","contentType":"directory"},{"name":"overscroll-behavior","path":"overscroll-behavior","contentType":"directory"},{"name":"path","path":"path","contentType":"directory"},{"name":"scroll-snap","path":"scroll-snap","contentType":"directory"},{"name":"shapes","path":"shapes","contentType":"directory"},{"name":"target-text","path":"target-text","contentType":"directory"},{"name":"time","path":"time","contentType":"directory"},{"name":"tools","path":"tools","contentType":"directory"},{"name":"transitions","path":"transitions","contentType":"directory"},{"name":"types","path":"types","contentType":"directory"},{"name":"variable-fonts","path":"variable-fonts","contentType":"directory"},{"name":"visual-formatting","path":"visual-formatting","contentType":"directory"},{"name":"web-fonts","path":"web-fonts","contentType":"directory"},{"name":".editorconfig","path":".editorconfig","contentType":"file"},{"name":".gitignore","path":".gitignore","contentType":"file"},{"name":".markdownlint-cli2.jsonc","path":".markdownlint-cli2.jsonc","contentType":"file"},{"name":".markdownlint.jsonc","path":".markdownlint.jsonc","contentType":"file"},{"name":".prettierignore","path":".prettierignore","contentType":"file"},{"name":".prettierrc.json","path":".prettierrc.json","contentType":"file"},{"name":"CODE_OF_CONDUCT.md","path":"CODE_OF_CONDUCT.md","contentType":"file"},{"name":"CONTRIBUTING.md","path":"CONTRIBUTING.md","contentType":"file"},{"name":"LICENSE","path":"LICENSE","contentType":"file"},{"name":"README.md","path":"README.md","contentType":"file"},{"name":"_config.yml","path":"_config.yml","contentType":"file"}],"totalCount":57}},"fileTreeProcessingTime":6.463775,"foldersToFetch":[],"repo":{"id":78788842,"defaultBranch":"main","name":"css-examples","ownerLogin":"mdn","currentUserCanPush":false,"isFork":false,"isEmpty":false,"createdAt":"2017-01-12T21:32:23.000Z","ownerAvatar":"https://avatars.githubusercontent.com/u/7565578?v=4","public":true,"private":false,"isOrgOwned":true},"symbolsExpanded":false,"treeExpanded":true,"refInfo":{"name":"main","listCacheKey":"v0:1704781566.0","canEdit":false,"refType":"branch","currentOid":"4f67fbe20ab70c25cc1365f2b3f2437c6cce6053"},"path":"css-cookbook/center--download.html","currentUser":null,"blob":{"rawLines":["","",""," "," "," "," "," CSS Cookbook: center an element",""," "," ",""," ","
","
I am centered!
","
"," ",""],"stylingDirectives":[[{"start":0,"end":15,"cssClass":"pl-c1"},{"start":14,"end":15,"cssClass":"pl-kos"}],[],[{"start":0,"end":1,"cssClass":"pl-kos"},{"start":1,"end":5,"cssClass":"pl-ent"},{"start":6,"end":10,"cssClass":"pl-c1"},{"start":12,"end":14,"cssClass":"pl-s"},{"start":15,"end":16,"cssClass":"pl-kos"}],[{"start":2,"end":3,"cssClass":"pl-kos"},{"start":3,"end":7,"cssClass":"pl-ent"},{"start":7,"end":8,"cssClass":"pl-kos"}],[{"start":4,"end":5,"cssClass":"pl-kos"},{"start":5,"end":9,"cssClass":"pl-ent"},{"start":10,"end":17,"cssClass":"pl-c1"},{"start":19,"end":24,"cssClass":"pl-s"}],[{"start":4,"end":5,"cssClass":"pl-kos"},{"start":5,"end":9,"cssClass":"pl-ent"},{"start":10,"end":14,"cssClass":"pl-c1"},{"start":16,"end":24,"cssClass":"pl-s"},{"start":26,"end":33,"cssClass":"pl-c1"},{"start":35,"end":53,"cssClass":"pl-s"}],[{"start":4,"end":60,"cssClass":"pl-c"}],[{"start":4,"end":5,"cssClass":"pl-kos"},{"start":5,"end":10,"cssClass":"pl-ent"},{"start":10,"end":11,"cssClass":"pl-kos"},{"start":42,"end":44,"cssClass":"pl-kos"},{"start":44,"end":49,"cssClass":"pl-ent"},{"start":49,"end":50,"cssClass":"pl-kos"}],[],[{"start":4,"end":5,"cssClass":"pl-kos"},{"start":5,"end":10,"cssClass":"pl-ent"},{"start":10,"end":11,"cssClass":"pl-kos"}],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[],[{"start":4,"end":6,"cssClass":"pl-kos"},{"start":6,"end":11,"cssClass":"pl-ent"},{"start":11,"end":12,"cssClass":"pl-kos"}],[{"start":2,"end":4,"cssClass":"pl-kos"},{"start":4,"end":8,"cssClass":"pl-ent"},{"start":8,"end":9,"cssClass":"pl-kos"}],[],[{"start":2,"end":3,"cssClass":"pl-kos"},{"start":3,"end":7,"cssClass":"pl-ent"},{"start":7,"end":8,"cssClass":"pl-kos"}],[{"start":4,"end":5,"cssClass":"pl-kos"},{"start":5,"end":8,"cssClass":"pl-ent"},{"start":9,"end":14,"cssClass":"pl-c1"},{"start":16,"end":25,"cssClass":"pl-s"},{"start":26,"end":27,"cssClass":"pl-kos"}],[{"start":6,"end":7,"cssClass":"pl-kos"},{"start":7,"end":10,"cssClass":"pl-ent"},{"start":11,"end":16,"cssClass":"pl-c1"},{"start":18,"end":22,"cssClass":"pl-s"},{"start":23,"end":24,"cssClass":"pl-kos"},{"start":38,"end":40,"cssClass":"pl-kos"},{"start":40,"end":43,"cssClass":"pl-ent"},{"start":43,"end":44,"cssClass":"pl-kos"}],[{"start":4,"end":6,"cssClass":"pl-kos"},{"start":6,"end":9,"cssClass":"pl-ent"},{"start":9,"end":10,"cssClass":"pl-kos"}],[{"start":2,"end":4,"cssClass":"pl-kos"},{"start":4,"end":8,"cssClass":"pl-ent"},{"start":8,"end":9,"cssClass":"pl-kos"}],[{"start":0,"end":2,"cssClass":"pl-kos"},{"start":2,"end":6,"cssClass":"pl-ent"},{"start":6,"end":7,"cssClass":"pl-kos"}]],"colorizedLines":null,"csv":null,"csvError":null,"dependabotInfo":{"showConfigurationBanner":false,"configFilePath":null,"networkDependabotPath":"/mdn/css-examples/network/updates","dismissConfigurationNoticePath":"/settings/dismiss-notice/dependabot_configuration_notice","configurationNoticeDismissed":null},"displayName":"center--download.html","displayUrl":"https://github.com/mdn/css-examples/blob/main/css-cookbook/center--download.html?raw=true","headerInfo":{"blobSize":"965 Bytes","deleteTooltip":"You must be signed in to make or propose changes","editTooltip":"You must be signed in to make or propose changes","ghDesktopPath":"https://desktop.github.com","isGitLfs":false,"onBranch":true,"shortPath":"cf6480d","siteNavLoginPath":"/login?return_to=https%3A%2F%2Fgithub.com%2Fmdn%2Fcss-examples%2Fblob%2Fmain%2Fcss-cookbook%2Fcenter--download.html","isCSV":false,"isRichtext":false,"toc":null,"lineInfo":{"truncatedLoc":"46","truncatedSloc":"41"},"mode":"file"},"image":false,"isCodeownersFile":null,"isPlain":false,"isValidLegacyIssueTemplate":false,"issueTemplate":null,"discussionTemplate":null,"language":"HTML","languageID":146,"large":false,"planSupportInfo":{"repoIsFork":null,"repoOwnedByCurrentUser":null,"requestFullPath":"/mdn/css-examples/blob/main/css-cookbook/center--download.html","showFreeOrgGatedFeatureMessage":null,"showPlanSupportBanner":null,"upgradeDataAttributes":null,"upgradePath":null},"publishBannersInfo":{"dismissActionNoticePath":"/settings/dismiss-notice/publish_action_from_dockerfile","releasePath":"/mdn/css-examples/releases/new?marketplace=true","showPublishActionBanner":false},"rawBlobUrl":"https://github.com/mdn/css-examples/raw/main/css-cookbook/center--download.html","renderImageOrRaw":false,"richText":null,"renderedFileInfo":null,"shortPath":null,"symbolsEnabled":true,"tabSize":2,"topBannersInfo":{"overridingGlobalFundingFile":false,"globalPreferredFundingPath":null,"showInvalidCitationWarning":false,"citationHelpUrl":"https://docs.github.com/github/creating-cloning-and-archiving-repositories/creating-a-repository-on-github/about-citation-files","actionsOnboardingTip":null},"truncated":false,"viewable":true,"workflowRedirectUrl":null,"symbols":{"timed_out":false,"not_analyzed":true,"symbols":[]}},"copilotInfo":null,"copilotAccessAllowed":false,"csrf_tokens":{"/mdn/css-examples/branches":{"post":"UEwUf49XRJFNsbAcypEYp4RVrAM9iOgg7ELmxsZjUM4BSfw6uQEUXkIyVMtXcAObE784yDoYDb_7Vt72wkwauA"},"/repos/preferences":{"post":"gt09oQAyiHDIoY0PdeggZ0jlGVib2sl7-fSTXFC3ksNH5eqO8q0qC0elVEOQ3kCfomPIq5tkjF_ihLGNvl2bDg"}}},"title":"css-examples/css-cookbook/center--download.html at main ยท mdn/css-examples"}