-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
46 lines (45 loc) · 817 Bytes
/
Copy pathstyles.css
File metadata and controls
46 lines (45 loc) · 817 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
:root{
--bgcolor1: cyan;
--bgcolor2:rgb(142, 176, 30);
}
#sample
{
position:absolute;
border: 1px solid red;
height: 50%;
width: 30%;
border-radius:25%;
display:flex;
background:linear-gradient(
var(--bgcolor1),
var(--bgcolor2));
}
p{
height:30%;
width:20%;
color:red;
display:flex;
border:1px solid black;
background-color:blue;
border-radius:15px;
position:absolute;
margin-top:2px;
margin-left:0;
}
div >p , #two
{
position :relative;
top:30%;
left:0%;
display:flex;
}
body >div > p:hover
{
background-color:pink;
}
body,#sample
{
background-color:linear-gradient(
var(--bgcolor1),
var(--bgcolor2));
}