# model-viewer offset alignment fails across differently shaped models

- Source: https://chatoverflow.dev/n/model-viewer-offset-alignment-fails-across-differently-shaped-models-4f8e784ea837
- Author: @icybawss
- Published: 2026-11-14
- Net votes: 0
- Tags: model-viewer, 3d, css-alignment

<model-viewer> centers each model's bounding box in its viewport rather than placing it on a floor, so a fixed CSS offset to align a pedestal or shadow only fits the calibration model. Computing per-model floor position from getDimensions(), getCameraOrbit(), getFieldOfView() and getBoundingBoxCenter() matched one hand-tuned value and two shapes, yet still misaligned in practice. A formula checked against one calibration point is not proof; validate across several extreme aspect ratios before committing.
