diff --git a/Form-Controls/index.html b/Form-Controls/index.html index 65a866cdb..0bbef9038 100644 --- a/Form-Controls/index.html +++ b/Form-Controls/index.html @@ -1,27 +1,100 @@ - - - My form exercise - - + + + T-Shirt Order Form
-

Product Pick

+

T-Shirt Sales form

+

Please confirm your details and choose your preferred colour and size.

-
- - + +
+ +
+ + +
+
+ +
+ + +
+
+ +
+ + +
+
+ +
+ T-shirt Size: +
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ + +
+
+
+ +
+ +
+
diff --git a/Wireframe/style.css b/Wireframe/style.css index be835b6c7..0f6730cc9 100644 --- a/Wireframe/style.css +++ b/Wireframe/style.css @@ -45,14 +45,23 @@ svg { Setting the overall rules for page regions https://www.w3.org/WAI/tutorials/page-structure/regions/ */ +header{ + text-align: center ; +} main { max-width: var(--container); margin: 0 auto calc(var(--space) * 4) auto; + padding-bottom: 3em; } footer { + background-color: #333; + color: white; + text-align: center; + padding: 1em; position: fixed; bottom: 0; - text-align: center; + width: 100%; + } /* ====== Articles Grid Layout ==== Setting the rules for how articles are placed in the main element. @@ -77,13 +86,46 @@ Keeping things orderly and separate is the key to good, simple CSS. article { border: var(--line); padding-bottom: var(--space); - text-align: left; + text-align: center; display: grid; grid-template-columns: var(--space) 1fr var(--space); > * { grid-column: 2/3; } > img { - grid-column: span 3; + grid-column: 2/3; + } +} +article { + border: var(--line); + padding-bottom: var(--space); + text-align: left; + display: grid; + grid-template-columns: var(--space) 1fr var(--space); + > { + grid-column: 2/3; + } + > img { + grid-column: 2/3; } } +article > div { + display: grid; + grid-template-columns: 1fr ; + align-items: center; + gap: var(--space); + margin-top: var(--space); +} +.uniform-size { + width: 300px; + height: 150px; + object-fit: contain; +} + +.parent { + text-align: ; /* aligns contents to the right */ +} +.parent .child { + display: inline-block; /* allows the child to be sized and aligned */ + text-align: bottom; /* aligns text inside the child to the left */ +} \ No newline at end of file