# oliverzheng/howtocenterincss

CSS generator for centering text/div depending on their size or the container size.

Repository: https://github.com/oliverzheng/howtocenterincss
Canonical: https://ross.abutalabs.com/products/howtocenterincss
Homepage: http://howtocenterincss.com/
Language: JavaScript
License Family: other
Last push: 2020-09-04T21:26:50+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 4234, "days_push": 2189, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1125, forks 38 (observed 2026-08-28T04:03:40.929960+00:00)

## What it is
A web-based code generator that produces HTML and CSS for centering or aligning text and divs within a container. Users specify content type, container dimensions, alignment, and IE support level, and it generates the appropriate CSS code.

## Use cases
- generate CSS to center a div horizontally and vertically
- center text inside a container with unknown height
- get CSS alignment code that works in older Internet Explorer versions
- figure out which CSS centering technique to use for my layout
- generate code to align content to the bottom right of a parent div
- center a div when container width is only known at runtime

## When to choose
- you need a quick, working CSS snippet for centering or aligning content
- you must support legacy browsers like Internet Explorer 6-11
- you are unsure which centering approach fits your container's known/unknown dimensions

## When to avoid
- you want a full CSS framework or layout system like Flexbox or Grid utilities
- you need modern layout tooling beyond simple alignment snippets
- you want an actively developed tool with recent updates or a maintained license

## Facets
- artifact type: application
- maturity: maintenance
- function: css-framework, developer-tools
- domain: web-development, frontend, web-design, developer-tools
- platform: -
- tags: css-generator, centering, alignment, code-generator, web-tool, web-development, web, javascript

## Member repositories
- oliverzheng/howtocenterincss (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:40.929960+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:39:34.851184+00:00, confidence not recorded.
  - readme: https://github.com/oliverzheng/howtocenterincss (fetched 2026-08-28T04:03:40.929960+00:00, sha 85861795d908)
  - homepage: http://howtocenterincss.com/ (fetched 2026-08-29T12:44:00.520248+00:00, sha e17a1110c062)
- Data as of 2026-08-30T08:39:29.467469+00:00.
