Book Now
Advanced Technical SEO

The Hidden SEO Risk of Using VH Units

Using VH in CSS Can Break Your Page Rendering

The Hidden SEO Risk of Using VH Units
Author:
Carlos Sánchez
Topics:
Crawling
,
Technologies
Publication Date:
2025-07-18

Last Review:
2025-07-18

There is a very common but little-known error when Google renders content.

This topic is quite interesting, as in this case the rendering issue is not caused by JavaScript but rather by a matter of CSS.

CSS Units

Broadly speaking, there are absolute units (px, cm, pt, mm) and relative units (em, rem, vw, vh, %).

As the name suggests, absolute units are fixed and do not change depending on other values. They are especially useful when exact sizing control is required.

Meanwhile, relative units are always based on another value, such as the font size of the parent element or the parent element itself. This is particularly useful when you want an element to adapt to different screen sizes — in other words, for responsive or adaptive designs.

In this case, we will focus on one unit that can cause a serious SEO issue and is also widely used: VH.

The VH Nightmare

VH stands for viewport height, meaning that an element set to "x" (a numerical value) VH will have a size equivalent to a percentage of the height of the device's screen.

For instance, if an element has 50vh, its height (or width, depending on what is specified) will be half the height of the screen.

A very common technique is to set the first block of the page to a height of 100vh to create the impact of filling the entire screen. Whether it’s for a slider or design requirements, this setup might look like:

.fullheight {
height: 100vh;
}

If you want to find websites with this kind of setup, you can always use a source code search engine.

On paper, it might seem great. The problem is that when Google takes a Snapshot to understand our content, it uses a rather unorthodox screen. It doesn't scroll and captures a large portion in one go. This can result in what is known as "Thin Content", which might even be treated as a soft 404.

This is what it looks like when you click "View tested page" in Search Console:

100vh rendering causes issues
It is analysed with a disproportionate screen height, giving the impression that most of the page is empty.
The visible pixels come from the background image's scaling issue.

In theory, this shouldn't be a problem, but in practice, I have seen several websites improve almost instantly after addressing this issue.

In Search Console snapshots, at most only up to 1750px will be visible

How to Fix the VH Issue

The good news is that the solution is quite simple. Just set a reasonable max-height to avoid this disproportion. You can safely use a max-height of 800px. For example:

.fullheight {
height: 100vh;
max-height: 800px;
}

If VH is deeply integrated into your system and designed for devices such as televisions, you can use a @media query and apply the max-height only when the screen is taller than it is wide:


.fullheight {
height: 100vh;
}
@media only screen and (max-width: 800px) {
.fullheight {
max-height: 800px;
}
}

This way, it will have a height limit without compromising the functionality of the page.

Fix thin content rendering issue
Result censored for privacy reasons, but you can clearly see that the text is now visible.
Not understanding this?
If you need help with the more technical aspects, book a consultancy session with me: Get real SEO help!

Additional Information

If you like this article, you would help me a lot by sharing my content:
Interested in Advanced SEO Training?

I currently offer advanced SEO training in Spanish. Would you like me to create an English version? Let me know!

Tell me you're interested
You might be interested in other articles:
SEO Articles
Usamos cookies para asegurar que te damos la mejor experiencia en nuestra web. Aquí tienes nuestra política de Cookies.