Skip to content

Commit e087edc

Browse files
Centered page title and description and footer content set to center and bottom
1 parent 6b1afa2 commit e087edc

1 file changed

Lines changed: 7 additions & 36 deletions

File tree

Wireframe/style.css

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,4 @@
1-
/* Here are some starter styles
2-
You can edit these or replace them entirely
3-
It's showing you a common way to organise CSS
4-
And includes solutions to common problems
5-
As well as useful links to learn more */
61

7-
/* ====== Design Palette ======
8-
This is our "design palette".
9-
It sets out the colours, fonts, styles etc to be used in this design
10-
At work, a designer will give these to you based on the corporate brand, but while you are learning
11-
You can design it yourself if you like
12-
Inspect the starter design with Devtools
13-
Click on the colour swatches to see what is happening
14-
I've put some useful CSS you won't have learned yet
15-
For you to explore and play with if you are interested
16-
https://web.dev/articles/min-max-clamp
17-
https://scrimba.com/learn-css-variables-c026
18-
====== Design Palette ====== */
192
:root {
203
--paper: oklch(7 0 0);
214
--ink: color-mix(in oklab, var(--color) 5%, black);
@@ -24,8 +7,7 @@ As well as useful links to learn more */
247
--line: 1px solid;
258
--container: 1280px;
269
}
27-
/* ====== Base Elements ======
28-
General rules for basic HTML elements in any context */
10+
2911
h1{
3012
text-align: center;
3113
}
@@ -48,26 +30,19 @@ svg {
4830
width: 100%;
4931
object-fit: cover;
5032
}
51-
/* ====== Site Layout ======
52-
Setting the overall rules for page regions
53-
https://www.w3.org/WAI/tutorials/page-structure/regions/
54-
*/
33+
5534
main {
5635
max-width: var(--container);
5736
margin: 0 auto calc(var(--space) * 4) auto;
5837
}
5938
footer {
60-
position: fixed;
39+
position:relative;
6140
bottom: 0;
41+
width: 100%;
42+
color:black;
6243
text-align: center;
6344
}
64-
/* ====== Articles Grid Layout ====
65-
Setting the rules for how articles are placed in the main element.
66-
Inspect this in Devtools and click the "grid" button in the Elements view
67-
Play with the options that come up.
68-
https://developer.chrome.com/docs/devtools/css/grid
69-
https://gridbyexample.com/learn/
70-
*/
45+
7146
main {
7247
display: grid;
7348
grid-template-columns: 1fr 1fr;
@@ -76,11 +51,7 @@ main {
7651
grid-column: span 2;
7752
}
7853
}
79-
/* ====== Article Layout ======
80-
Setting the rules for how elements are placed in the article.
81-
Now laying out just the INSIDE of the repeated card/article design.
82-
Keeping things orderly and separate is the key to good, simple CSS.
83-
*/
54+
8455
article {
8556
border: var(--line);
8657
padding-bottom: var(--space);

0 commit comments

Comments
 (0)