CSSを使用して境界線フォーム入力を設定する
入力を形成するために境界線を設定するには、CSS境界線プロパティを使用します。
次のコードを実行して境界線を追加してみてください
例
<!DOCTYPE html>
<html>
<head>
<style>
input[type = text] {
width: 100%;
padding: 10px 15px;
margin: 5px 0;
box-sizing: border-box;
border: 3px inset orange;
}
</style>
</head>
<body>
<p>Fill the below form,</p>
<form>
<label for = "subject">Subject</label>
<input type = "text" id = "subject" name = "sub">
<label for = "student">Student</label>
<input type = "text" id = "student" name = "stu">
</form>
</body>
</html> -
CSSで左上隅の境界線を設定します
border-top-left-radiusプロパティを使用して、左上隅の境界線を設定します。次のコードを実行して、border-left-radiusプロパティを実装してみてください。 例 <html> <head> <style> #rcorner { border-radius: 25px; &
-
CSSで右上隅の境界線を設定します
border-top-rightを使用します CSSのradiusプロパティを使用して、右上の半径の境界線を設定します。次のコードを実行して、border-top-right-radiusプロパティを実装してみてください- 例 <html> <head> <style> #rcorner { border-radius: 25px; &nbs