Skip to content

Commit 426d673

Browse files
committed
add background style
1 parent 181302a commit 426d673

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

201 KB
Loading

apps/localStorage-and-event-delegation/assets/style/index.css

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ body {
1212
.container {
1313
width: 100%;
1414
height: 100%;
15+
background: #353638 no-repeat url(../img/food.jpg);
16+
background-size: cover;
1517
font-family: 'Roboto Condensed', sans-serif;
1618
text-rendering: optimizeLegibility;
1719
-webkit-font-smoothing: antialiased;
@@ -20,18 +22,22 @@ body {
2022
align-items: center;
2123
justify-content: center;
2224
flex-direction: column;
25+
padding-right: 10%;
2326
}
2427

2528
.content {
2629
display: flex;
2730
flex-direction: column;
2831
align-items: center;
29-
justify-content: center;
3032
border-radius: 5px;
31-
padding: 20px;
33+
padding: 20px 20px;
3234
max-width: 350px;
35+
width: 100%;
36+
height: 400px;
3337
background: rgba(255, 255, 255, 0.95);
34-
box-shadow: 0 0 0 10px rgba(0, 0, 0, 0.1);
38+
align-self: end;
39+
margin-right: 5%;
40+
border: 0.5px solid #d3dcd5;
3541
}
3642

3743
.content__title {

apps/localStorage-and-event-delegation/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
<body>
6464
<div class="container">
6565
<div class="content">
66-
<h1 class="content__title">JS Study Track</h1>
66+
<h1 class="content__title">Fancy foods</h1>
6767

6868
<ul class="list">
6969
<li class="list__item">Loading...</li>

0 commit comments

Comments
 (0)