+ 1

css help

How to set a universal size for an image, i mean 'width' and 'height'? so that the size is the same regardless of the user's screen...

6th Oct 2022, 10:18 PM
Анатолий Шмель
6 Answers
6th Oct 2022, 10:49 PM
SoloProg
SoloProg - avatar
0
img { width: 100%; height: 100%; } /* Or */ span { border: 1px red solid; position: absolute; /* fixed; */ width: 100vmax; height: 100vmax; }
6th Oct 2022, 10:34 PM
SoloProg
SoloProg - avatar
0
SoloProg and px too?
6th Oct 2022, 10:36 PM
Анатолий Шмель
0
</CODER> а как сделать размер адаптивным под все экраны?
7th Oct 2022, 11:27 AM
Анатолий Шмель