When designing, we often encounter moments when it is difficult to make a decision because there is no one right answer.
“Would it be better to use a fixed value for this?”
“Would it be better to make it flexible depending on the content?”
It may seem like a simple decision, but once you actually start working, choosing one option is not easy.
Fixing the size makes the overall design look clean and consistent, but depending on the content, it may feel cramped or leave too much empty space. Conversely, making it flexible allows you to accommodate various situations, but the form may differ from screen to screen, reducing consistency.
This kind of dilemma is not limited to size. We continually face questions about aspects with no clear right answer, such as how strictly to follow the rules of a design system, how much information to display, whether to solve something with a modal or separate it into a page, and whether to use only an icon or display text alongside it.
In this article, I will focus on the topic of fixed and flexible values for web modal windows—one of the issues designers may have considered.
I will also discuss which choice is more appropriate in each situation and the criteria I use to make these decisions.
Modal Width: Fixed Value VS Flexible Value
(1) Cases Where the Modal Width Is Fixed
When defining modals in a design system, it is common to specify several Width values, such as S, M, and L.
- For example, a modal for a simple notification or confirmation might be S,
- a modal for general input or displaying detailed information might be M,
- and a modal for displaying a large amount of information might be L.
In this way, specifications can be divided according to the purpose of use.
Establishing these standards makes it possible to use the same modal across multiple screens and makes components easier to manage from a development perspective. From a designer’s perspective, it also means there is no need to reconsider the modal size from scratch every time.
(2) Cases Where It Is Difficult to Fix the Modal Width
When designing real-world work screens, you may encounter slightly different situations. Some screens may have only a few data columns, while others may contain dozens of items or lengthy text.
In particular, on operator or administrator screens, the amount of data users need to enter or review is often inconsistent.
In such situations, problems can arise if all modals are defined only as S / M / L.
If a screen with a large amount of content is forced into an L size, the information may become overly compressed. When data such as a table is included, there may not be enough room to display all the columns, resulting in horizontal scrolling. Conversely, if the content does not fill the modal appropriately, unnecessary empty space may appear. Specifications create consistency, but they cannot provide space optimized for every type of content.

Height When a Modal Contains Tab Menus: Fixed Value VS Flexible Value
A similar dilemma arises not only with Width but also with Height.
There was a situation where I had to create a screen with multiple tabs in a single modal, with a different amount of content in each tab.
If tab A contains a large amount of content,
tab B contains somewhat less content,
and tab C contains only a few items,
how should the modal height be handled?
(1) Cases Where the Modal Height Is Fixed
You can fix the modal height based on the tab with the most content. This can create a stable impression because the modal size does not change when switching between tabs.
This can be particularly helpful when users need to move quickly between tabs to compare their contents, since the modal’s size and position do not keep changing.
However, a tab with less content will leave a large amount of unused space.
(2) Cases Where the Modal Height Is Adjusted Flexibly
Conversely, you can adjust the modal height flexibly according to the amount of content in each tab.
In this case, unnecessary empty space can be reduced in tabs with less content, providing the advantage of using only the space that is needed.
However, the modal height will differ each time the user switches tabs. In particular, when the amount of content varies significantly between tabs, the modal may suddenly expand or shrink, making the change on the screen more noticeable to the user.
Ultimately, the same dilemma arises here as well. Fixing the height is stable, but the space may be insufficient or awkward, while using a flexible height makes more efficient use of space but can cause greater changes on the screen. 
Then, which is better: fixed or flexible?
When organizing these examples, it is ultimately difficult to reach a single conclusion. A fixed value is not always better, nor is a flexible value always better.
Therefore, in this case as well, rather than simply deciding that “because they are tabs, the height should be fixed,” I think it is necessary to consider both the nature of the tabs and the user’s behavior.
For example, if each tab provides similar information and users move between tabs to compare the contents, a fixed height may feel more natural.
Conversely, if the content of each tab is independent and the amount of content varies significantly, a flexible height may be more appropriate.
In situations like these, there are three main things I check first.
(1) The Amount of Content and Its Range of Variation
First, I check the amount of content that will actually appear in the service. If the amount of content is generally consistent, there may be no need to make the layout flexible.
Conversely, if the amount of data varies significantly from screen to screen, it may be difficult to accommodate every situation with a single fixed value.
In work systems especially, the difference between the sample data seen during the design stage and the actual operational data can be significant. Therefore, I believe it is important to identify the possible range of data in advance.
(2) User Behavior
Next, I look at how users interact with the UI.
The decision may differ depending on whether it is a modal that users simply check and close, a modal in which they move between multiple tabs to compare content, or a modal in which they directly enter or edit a large amount of data.
For example, on a screen where users quickly switch between tabs to compare them, it may be more convenient for the modal to remain a consistent size rather than continuously changing size.
Conversely, if each tab is structured for performing an independent task, it may not be a significant problem for the size to change according to the content.
(3) Whether the content really belongs in a modal
Lastly, this is the aspect I consider most important.
Making a modal unconditionally large just because it contains a lot of content is not always the right answer. If the modal becomes excessively large and the internal scrolling starts to get lengthy, it is worth reconsidering whether this content should be handled inside a modal in the first place.
The Carbon Design System also limits the maximum height of modals and recommends considering a larger modal if a large amount of content causes excessive scrolling, or navigating to a full page if even a Large modal is not sufficient.
Material Design likewise defines minimum and maximum ranges for Dialog size and recommends adjusting the size according to the screen size. On larger screens, one approach is to set a maximum Width and adjust the height according to the content.
Ultimately, I believe that “making something fluid should not become the goal in itself; what matters is responding flexibly within a range appropriate for the content and its purpose.”
The criteria I have in mind
Summarizing the situations above, I would make my judgment based on the following criteria.
General-purpose modals used repeatedly
→ Fixed specifications such as S / M / L
Business data whose content volume is not consistent
→ Consider a fluid Width within a defined range
When the difference in content volume between tabs is small and comparison is important
→ Fixed Height
When the difference in content volume between tabs is large and each contains independent content
→ Fluid Height
When there is a lot of horizontal information, such as in a data table
→ Consider a larger modal or a separate window-transition layout
When the modal becomes excessively large or internal scrolling becomes lengthy
→ Consider separating it into a page rather than using a modal
What is important here is that “fixed and fluid do not need to be viewed as opposing concepts.”
In practice, design systems also define sizes such as S / M / L, while changing the actual Width responsively according to the screen size or selecting the next size based on the amount of content.
Therefore, rather than deciding “whether to use a fixed value or a fluid value,” I believe it is more important to decide “which range should be controlled by the system, and from what point should it be left to the content?”
Additionally, IBM’s Carbon Design System defines modal sizes in several steps, such as XS, S, M, and L. However, instead of applying fixed absolute pixel values, it uses a fluid design based on viewport proportions and grid-column criteria.
In other words, the sizes are defined as rules, while the actual dimensions respond with some degree of flexibility. I think this aspect prompts us to consider what “fixed” means in a design system.
Defining something as fixed does not necessarily mean applying a single number, such as ‘480px’ or ‘640px’, to every situation.
Ultimately, UI design is a matter of choice
While considering the Width and Height of this modal, I once again realized that UI design has fewer clear-cut right answers than we might expect.
Fixing the size can provide consistency but may sacrifice flexibility, while making it fluid can accommodate various situations but may reduce consistency. Ultimately, it is difficult to say that one side is always the better choice.
So when designing, I try to first think about:
“How does the actual content come in?”
“What actions does the user take on this screen?”
“What problem is the UI trying to solve?”
“What inconvenience will the user have to tolerate as a result of this choice?”
I try to think about these questions first.
Then, based on those criteria, I believe it is better to distinguish between what should remain fixed and what should be made fluid.
It may appear to be simply a matter of deciding the modal’s Width and Height, but ultimately, it involved several interconnected factors, including the nature of the content, user behavior, the amount of data, and the consistency of the design system.
I will continue to face moments that require choices like these. Each time, rather than applying predetermined rules as they are, I will try to think once again about why those rules are necessary and make a choice suited to the current situation.
RIMS