I have this div:
#edj{
width:50%;
border-style: solid;
border-width: 5px;
}
</style>
</head>
<body>
<div id = "edj">
<p><label>Faculty <input type="text" class = "k"> </label></p>
<p><label >Departmet <input type="text" class = "k"> </label>
</div>
I want to make textboxes width 30 percent of the div width.
How can I implement this using css code?
This is an answer in it's simplest form, this will make input fields 30% of parents width.
input {
width: 30%;
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With