If you're delving into styling with CSS, exploring the media tag would be beneficial.
In accordance with the w3c, the here:
The @media
rule proves valuable in media queries for implementing different styles across various devices and media types.
Media queries serve the purpose of examining several factors including:
the viewport's width and height
the device's dimensions
orientation (whether it's in landscape or portrait mode)
resolution
Employing media queries has become a favored method to deliver customized style sheets through responsive web design for desktops, laptops, tablets, and mobile phones.
If by mentioning different PC monitors you are referencing varied widths/lengths, aspect ratios, or resolutions, and if the scenario involves displaying content differently based on resolution but all within PC monitor screens such as 720p, 1080p, or 4k monitors, the code snippet below may prove useful.
/* For screens up to 992px wide, switch from four columns to two columns */
@media screen and (max-width: 992px) {
.column {
width: 50%;
}
}
/* For screens up to 600px wide, stack columns vertically instead of horizontally */
@media screen and (max-width: 600px) {
.column {
width: 100%;
}
}