<div class="kapsul">
<div class="bir">
<h2>Normal</h2>
<input type="text" name="normal" value="Lorem ipsum dolar" />
</div>
<div class="iki">
<h2>field-sizing: content;</h2>
<input type="text" name="icerik" value="Lorem ipsum dolar" />
</div>
</div>
@import url('https://fonts.googleapis.com/css?family=Poppins:400,500,600,700,800,900&display=swap');
.kapsul {
width: 500px;
margin-inline: auto;
display: flex;
flex-wrap: wrap;
gap: 10px;
}
input {
width: auto;
padding: 5px;
line-height: 1.1em;
}
input[name="icerik"] {
field-sizing: content;
}
* {
margin: 0;
padding: 0;
outline: 0;
}
body,
textarea {
font-family: 'Poppins', sans-serif;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.