Answers for "css adjust width to screen size"

0

fixed size body html

html {
    position: relative;
    min-width: 1024px;
    min-height: 768px;
    height: 100%;
}
<!-- Remove height 100% if needed fixed height -->
Posted by: Guest on August-20-2020
3

width in % of a screen css

1vw = 1% of viewport width
1vh = 1% of viewport height
Posted by: Guest on February-05-2021

Code answers related to "css adjust width to screen size"

Browse Popular Code Answers by Language