Skip to content

Commit

Permalink
fix(CSS): Fixes Label covered by text area (#708)
Browse files Browse the repository at this point in the history
Co-authored-by: Jaykumar Mandaviya <2018itjay085@ldce.ac.in>
  • Loading branch information
JayMandaviyaDev and jaymandaviyald authored Mar 19, 2024
1 parent 0e83eed commit a21e2e9
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions html/forms/your-first-HTML-form/first-form-styled.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
<meta charset="utf-8" />
<title>Your first HTML form, styled</title>
<style>
form {
body{
/* Just to center the form on the page */
margin: 0 auto;
width: 400px;
text-align: center;
}
form {
display: inline-block;
/* To see the outline of the form */
padding: 1em;
border: 1px solid #ccc;
Expand All @@ -27,7 +29,8 @@
label {
/* To make sure that all labels have the same size and are properly aligned */
display: inline-block;
width: 90px;
min-width: 90px;

text-align: right;
}

Expand Down

0 comments on commit a21e2e9

Please sign in to comment.