Followed README and added main.css and created stylesheet entry. Edited index.html according to directions.
This commit is contained in:
parent
b11aab2595
commit
e15b05ceb3
@ -4,11 +4,19 @@
|
|||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
|
<link rel="stylesheet" href="main.css">
|
||||||
|
<style>[]
|
||||||
|
p {
|
||||||
|
background-color: green;
|
||||||
|
font-size: 18px;
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
<title>Methods for Adding CSS</title>
|
<title>Methods for Adding CSS</title>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div>Style me via the external method!</div>
|
<div>Style me via the external method!</div>
|
||||||
<p>I would like to be styled with the internal method, please.</p>
|
<p>I would like to be styled with the internal method, please.</p>
|
||||||
<button>Inline Method</button>
|
<button style="background-color: orange; font-size: 18px;">Inline Method</button>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
7
foundations/01-css-methods/main.css
Normal file
7
foundations/01-css-methods/main.css
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
div {
|
||||||
|
color:white;
|
||||||
|
background-color: red;
|
||||||
|
font-size: 32px;
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user