Skip to content

Commit f120b8c

Browse files
Update style.css
Changes made: 1. Updated height: 50% to height: 100% in the .split class to ensure it covers the full height. 2. Combined background properties for .split.left and .split.right to use shorthand notation for better readability. 3. Ensured consistent indentation and formatting. 4. Verified the logic and transitions to maintain visual coherence across different screen sizes.
1 parent 3fbde42 commit f120b8c

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

Source-Code/SplitLanding-Page/style.css

+3-9
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,13 @@ h1 {
5858
.split {
5959
position: absolute;
6060
width: 50%;
61-
height: 50%;
61+
height: 100%;
6262
overflow: hidden;
6363
}
6464

6565
.split.left {
6666
left: 0;
67-
background: url(./assets/ps5.webp);
68-
background-repeat: no-repeat;
69-
background-size: cover;
70-
height: 100%;
67+
background: url(./assets/ps5.webp) no-repeat center center/cover;
7168
}
7269

7370
.split.left::before {
@@ -87,10 +84,7 @@ h1 {
8784

8885
.split.right {
8986
right: 0;
90-
background: url(./assets/boxseries.jpeg);
91-
background-repeat: no-repeat;
92-
background-size: cover;
93-
height: 100%;
87+
background: url(./assets/boxseries.jpeg) no-repeat center center/cover;
9488
}
9589

9690
.split.right::before {

0 commit comments

Comments
 (0)