move styles to own file

This commit is contained in:
Cody Loyd 2021-08-18 15:49:04 -05:00
parent 9eacdd9d97
commit ef38462a4b
4 changed files with 57 additions and 59 deletions

View file

@ -5,36 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Margin and Padding exercise</title>
<style>
body {
max-width: 600px;
margin: 0 auto;
}
.one {
background: pink;
border: 3px solid blue;
/* CHANGE ME */
padding: 0px;
margin: 0px;
}
.two {
background: lightblue;
border: 3px solid purple;
/* CHANGE ME */
margin-bottom: 0px;
}
.three {
background: peachpuff;
border: 3px solid brown;
width: 200px;
/* CHANGE ME */
padding: 0px;
margin-left: 0px;
}
</style>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="one">

View file

@ -0,0 +1,28 @@
body {
max-width: 600px;
margin: 0 auto;
}
.one {
background: pink;
border: 3px solid blue;
/* CHANGE ME */
padding: 0px;
margin: 0px;
}
.two {
background: lightblue;
border: 3px solid purple;
/* CHANGE ME */
margin-bottom: 0px;
}
.three {
background: peachpuff;
border: 3px solid brown;
width: 200px;
/* CHANGE ME */
padding: 0px;
margin-left: 0px;
}

View file

@ -5,35 +5,7 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Margin and Padding exercise 2</title>
<style>
body {
background: #eee;
font-family: sans-serif;
}
.card {
width: 400px;
background: #fff;
margin: 16px auto;
}
.title {
background: #e3f4ff;
}
.content {
background: #e3f4ff;
}
.button {
background: #e3f4ff;
}
button {
background: white;
border: 1px solid #eee;
}
</style>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="card">

View file

@ -0,0 +1,27 @@
body {
background: #eee;
font-family: sans-serif;
}
.card {
width: 400px;
background: #fff;
margin: 16px auto;
}
.title {
background: #e3f4ff;
}
.content {
background: #e3f4ff;
}
.button {
background: #e3f4ff;
}
button {
background: white;
border: 1px solid #eee;
}