looking for a website hero size thats either 960px, 992px, 1140, or 1200 by something…
- User
looking for a website hero size thats either 960px, 992px, 1140, or 1200 by something that creates a 16:9 ratio
- Assistant
A 16:9 aspect ratio means that for every 16 pixels in width, there are 9 pixels in height. To determine the appropriate height for a hero section with the widths you mentioned, you can use the formula for aspect ratio calculation:
[ \text{Height} = \frac{\text{Width}}{\text{Aspect Ratio}} = \frac{\text{Width}}{16/9} = \frac{9 \times \text{Width}}{16} ]
Let's calculate the height for each width you mentioned:
-
Width: 960px [ \text{Height} = \frac{9 \times 960}{16} = 540 \text{ pixels} ]
-
Width: 992px [ \text{Height} = \frac{9 \times 992}{16} = 558 \text{ pixels} ]
-
Width: 1140px [ \text{Height} = \frac{9 \times 1140}{16} = 641.25 \text{ pixels} ] Since height generally needs to be an integer pixel value, you can round it to 641 pixels.
-
Width: 1200px [ \text{Height} = \frac{9 \times 1200}{16} = 675 \text{ pixels} ]
So, the recommended hero sizes creating a 16:9 ratio would be:
- 960px x 540px
- 992px x 558px
- 1140px x 641px
- 1200px x 675px
-