In the figure above, we have a navigation menu that is being tweaked based on the viewport height. But, what about different viewport heights? For example, you’re working on a page design, and you provided how a specific component will look across different viewport widths. Thinking Vertically In CSSĪs designers and developers, some of us only focus on the width variations of a design, putting behind the importance of testing versus the viewport height. Enough theory, let’s learn how to think vertically in CSS. The real question is: Can we enhance the user experience when the viewport height is small? Yes, it’s possible. For smaller laptop screens, you will only see a small portion of the web page. The arrowed area in the figure above represents the current viewport height. This can break up a design or can shed light on issues that you didn’t account for. When you open the browser DevTools, they will also take vertical space from the browser’s height. Resizing the browser (vertically) is not the only way to change the viewport height. I’ve seen websites that looks bad when the browser height is reduced. Instead, you need to account for the worst.ĭo you see what I mean? The reality is that not all users use their web browsers as you expect. For example, assuming that a user will browse a website by using the full width and height of a screen is incorrect. Before diving into examples and use-cases, I want to illustrate the issue so you can have an idea about the kind of problems we will explore.įor a designer, an invalid assumption is one of the factors that play a vital role in ruining a website design. Taking responsibility for testing both horizontally and vertically is extremely important. When we work on a website implementation, making assumptions without depending on real-world data is not good. There’s a question in the back of your mind: Do we need to reduce the browser height? Yes, and I will convince you in this article. We always test horizontally by reducing the width, but I rarely see some consideration for testing vertically by reducing the browser height. Responsive height design, seriously? Well, the term Responsive Web Design is often known as checking the browser on multiple viewport widths and device sizes. You might be thinking about why did I choose such a title for a blog post.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |