Skip to content

Commit

Permalink
Add padding to the random divs
Browse files Browse the repository at this point in the history
  • Loading branch information
ssimkani committed Mar 2, 2024
1 parent 71e7098 commit 87042ff
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
8 changes: 4 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ <h2>Some random information.</h2>
<div class="random-info">

<div class="img-text">
<div class="image">placeholder text</div>
<div class="image"></div>
<p>Illustration subtext of image</p>
</div>

<div class="img-text">
<div class="image">placeholder text</div>
<div class="image"></div>
<p>Illustration subtext of image</p>
</div>

<div class="img-text">
<div class="image">placeholder text</div>
<div class="image"></div>
<p>Illustration subtext of image</p>
</div>

<div class="img-text">
<div class="image">placeholder text</div>
<div class="image"></div>
<p>Illustration subtext of image</p>
</div>
</div>
Expand Down
12 changes: 11 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,14 @@ h1 {
.random{
display: flex;
flex-direction: column;
gap: 20px;
padding-bottom: 100px
}

.random .random-info {
display: flex;
justify-content: center;
gap: 100px;
gap: 50px;
}

.img-text {
Expand All @@ -111,6 +113,7 @@ h1 {
.random-info p {
color: #1F2937;
font-size: 18px;
width: 150px;
}
.random h2 {
font-size: 36px;
Expand All @@ -119,6 +122,13 @@ h1 {
text-align: center;
}

.image {
height: 150px;
width: 150px;
border: solid #3882F6;
border-radius: 10px;
border-width: 3px;
}

/* Random */

Expand Down

0 comments on commit 87042ff

Please sign in to comment.