Answer the question
In order to leave comments, you need to log in
Where do indents come from?
Hello, this is the code (at 500% scale)
<!DOCTYPE html>
<body>
<div>
<div class="text">123321123321</div>
<input type="text" />
</div>
</body>
<style>
.text {
font-size: 1.75vmin;
color: red;
}
input {
width: 100%;
height: 4.5vmin;
background: green;
}
</style>
</html>
Answer the question
In order to leave comments, you need to log in
Because you set the values in vMin.
Set the height of the input as a percentage, for example, and the font size in VW.
PS: it seems that this is a problem (or bug) not in all browsers was observed
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question