Skip to content

Commit aa17627

Browse files
committed
css alterations
1 parent e4d4fab commit aa17627

2 files changed

Lines changed: 11 additions & 23 deletions

File tree

Wireframe/index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ <h1>Web Development & Planning</h1>
1212
<p>Here are some useful steps & information to help you get started with web development.</p>
1313
</div>
1414
<main>
15-
<div class="top-article">
15+
<article>
1616
<img src="wireframe.png" alt="wireframe" />
1717
<h1>Wireframe</h1>
1818
<p>
1919
What is the purpose of a wireframe? Think of "Wireframe" as the Architectural blueprint of a website or App.
2020
A visual guide that outlines the structure, layout and placement of elements on a website.
2121
</p>
22-
</div>
23-
<div class="left-article">
22+
</article>
23+
<section>
2424
<img src="placeholder.svg" alt="" />
2525
<h2>README File</h2>
2626
<p>
@@ -29,7 +29,7 @@ <h2>README File</h2>
2929
</p>
3030
<a href="">Read more</a>
3131
</div>
32-
<div class="right-article">
32+
<section>
3333
<img src="placeholder.svg" alt="" />
3434
<h2>Branch in Git</h2>
3535
<p>

Wireframe/style.css

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ As well as useful links to learn more */
2222
--font: 100%/1.5 system-ui;
2323
--space: clamp(6px, 6px + 2vw, 15px);
2424
--line: 1px solid;
25-
--container: 1280px;
25+
--container: 900px;
2626
}
2727
/* ====== Base Elements ======
2828
General rules for basic HTML elements in any context */
2929
body {
3030
background: var(--paper);
3131
color: var(--ink);
3232
font: var(--font);
33-
text-align: center;
33+
width: 66.666%;
34+
max-width: 900px;
35+
margin: 0 auto;
3436
}
3537

3638
a {
@@ -75,35 +77,21 @@ main {
7577
text-align: center;
7678
}
7779

78-
.top-article {
80+
.article {
7981
border: var(--line);
8082
padding: var(--space);
8183
text-align: center;
82-
width: 80%;
8384
}
8485

8586
/* ====== Article Layout ======
8687
Setting the rules for how elements are placed in the article.
8788
Now laying out just the INSIDE of the repeated card/article design.
8889
Keeping things orderly and separate is the key to good, simple CSS.
8990
*/
90-
.left-article {
91-
border: var(--line);
92-
padding-bottom: var(--space);
93-
text-align: left;
94-
display: grid;
95-
grid-template-columns: var(--space) 1fr var(--space);
96-
> * {
97-
grid-column: 2/3;
98-
}
99-
> img {
100-
grid-column: span 3;
101-
}
102-
103-
.right-article {
91+
section {
10492
border: var(--line);
10593
padding-bottom: var(--space);
106-
text-align: right;
94+
10795
display: grid;
10896
grid-template-columns: var(--space) 1fr var(--space);
10997
> * {

0 commit comments

Comments
 (0)