diff --git a/Ex/2021-11-25/css/Ex2_solution.css b/Ex/2021-11-25/css/Ex2_solution.css index d9c0a18..78e669d 100644 --- a/Ex/2021-11-25/css/Ex2_solution.css +++ b/Ex/2021-11-25/css/Ex2_solution.css @@ -1,13 +1,13 @@ -.err { - background: #ffe6ee; +.err { + background: #ffe6ee; /*border: 1px solid #b1395f; */ } -.empty { - border: 1px solid #1f44eb; +.empty { + border: 1px solid #1f44eb; } -div{ +div { /* Center the form on the page */ margin: 0 auto; width: 450px; @@ -15,76 +15,92 @@ div{ padding: 1em; } -div.emsg{ - color: #c12020; - font-weight: bold; +div.emsg { + color: #c12020; + font-weight: bold; padding: 0; height: 1em; } form { - /* Center the form on the page */ - margin: 0 auto; - width: 450px; - /* Form outline */ - padding: 1em; - border: 1px solid #CCC; - border-radius: 1em; - } - - ul { - list-style: none; - padding: 0; - margin: 0; - } - - /*all li elements inside form and adjacent sibling li elements*/ - form li + li { - margin-top: 1em; - } - - label { - /* Uniform size & alignment */ - display: inline-block; - width: 100px; - text-align: right; - } - - input, - textarea { - /* To make sure that all text fields have the same font settings + /* Center the form on the page */ + margin: 0 auto; + width: 450px; + /* Form outline */ + padding: 1em; + border: 1px solid #ccc; + border-radius: 1em; +} + +ul { + list-style: none; + padding: 0; + margin: 0; +} + +/*all li elements inside form and adjacent sibling li elements*/ +form li + li { + margin-top: 1em; +} + +label { + /* Uniform size & alignment */ + display: inline-block; + width: 100px; + text-align: right; +} + +input, +textarea { + /* To make sure that all text fields have the same font settings By default, textareas have a monospace font */ - font: 1em sans-serif; - - /* Uniform text field size */ - width: 300px; - box-sizing: border-box; - - /* Match form field borders */ - border: 1px solid #999; - } - - input:focus, - textarea:focus { - /* Additional highlight for focused elements */ - border-color: #000; - } - - textarea { - /* Align multiline text fields with their labels */ - vertical-align: top; - - /* Provide space to type some text */ - height: 5em; - } - - .button { - /* Align buttons with the text fields */ - padding-left: 90px; /* same size as the label elements */ - } - - button { - /* This extra margin represent roughly the same space as the space + font: 1em sans-serif; + + /* Uniform text field size */ + width: 300px; + box-sizing: border-box; + + /* Match form field borders */ + border: 1px solid #999; +} + +input:focus, +textarea:focus { + /* Additional highlight for focused elements */ + border-color: #000; +} + +textarea { + /* Align multiline text fields with their labels */ + vertical-align: top; + + /* Provide space to type some text */ + height: 5em; +} + +.button { + /* Align buttons with the text fields */ + padding-left: 90px; /* same size as the label elements */ +} + +button { + /* This extra margin represent roughly the same space as the space between the labels and their text fields */ - margin-left: .5em; - } \ No newline at end of file + margin-left: 0.5em; +} + +#A { + border: solid black; + background-color: gray; + text-align: center; +} +#B { + border: solid black; + background-color: gray; + text-align: center; +} +#C { + border: solid black; + background-color: gray; + text-align: center; +} diff --git a/Ex/2021-11-25/formValidationOnSubmit.html b/Ex/2021-11-25/formValidationOnSubmit.html index 30eb502..aa1155f 100644 --- a/Ex/2021-11-25/formValidationOnSubmit.html +++ b/Ex/2021-11-25/formValidationOnSubmit.html @@ -1,62 +1,35 @@
- - - + + +פרטי סטודנט
-בדיקת חבילה
+ + +