Skip to content

Commit dc15062

Browse files
committed
fix button location
pre must be a relative to help absolute work Signed-off-by: Lîm Tsú-thuàn <inbox@dannypsnl.me>
1 parent b61922a commit dc15062

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

style.css

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
textarea {
2-
float: left;
2+
/* float: left; */
33
width: 50%;
44
overflow: hidden;
55
min-height: 50em;
@@ -10,13 +10,12 @@ pre {
1010
background-color: #ffeff0;
1111
white-space: pre-wrap;
1212
border-radius: 0.5rem;
13+
position: relative;
14+
width: 50%;
1315
}
1416

15-
pre button::before {
16-
position: absolute;
17-
}
1817
pre button {
19-
position: relative;
18+
position: absolute;
2019
top: 15px;
2120
right: 15px;
2221
inset: 5px 5px auto auto;

0 commit comments

Comments
 (0)