Skip to content

Commit

Permalink
refactor : 코드리뷰 반영 - top 부분 감쌌던 button 태그 제거
Browse files Browse the repository at this point in the history
  • Loading branch information
Yeonseo-Jo committed Oct 23, 2023
1 parent 50d66b0 commit aa63355
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
4 changes: 1 addition & 3 deletions week1/aissgn3/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,7 @@ <h2>In Busan</h2>
</section>
</main>

<button class="btn-top">
<a href="#"><img src="./assets//icon/icon_top.png" /></a>
</button>
<a class="to-top" href="#"><img src="./assets//icon/icon_top.png" /></a>

<footer class="Info-footer">
<p>📷 Pic by Yeonseo</p>
Expand Down
7 changes: 5 additions & 2 deletions week1/aissgn3/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,7 @@ a:active {
}

/*top 버튼*/
.btn-top {
.to-top {
position: sticky;
float: right;
right: 2rem;
Expand All @@ -317,7 +317,10 @@ a:active {
z-index: 100;
}

.btn-top img {
.to-top:hover {
background-color: transparent;
}
.to-top img {
width: 4rem;
height: 4rem;
}

0 comments on commit aa63355

Please sign in to comment.