File tree Expand file tree Collapse file tree 2 files changed +46
-20
lines changed Expand file tree Collapse file tree 2 files changed +46
-20
lines changed Original file line number Diff line number Diff line change 11
11
</ head >
12
12
13
13
< body >
14
- < div class ="banner ">
15
- < img src ="./small.jpeg " alt ="retro small " class ="first-image " />
16
- < img src ="./small.jpeg " alt ="retro-small " class ="second-image " />
14
+ < div class ="first ">
17
15
< p >
18
- Lorem ipsum dolor, sit amet consectetur adipisicing elit. Velit quidem
19
- veniam sequi nesciunt ipsa esse neque vero modi, ullam facere quas fugit
20
- accusamus dignissimos, aut assumenda adipisci eum necessitatibus eaque
21
- facilis corporis asperiores! Sint officia totam temporibus laborum
22
- maxime facere voluptas nam quis, eius, iusto placeat laboriosam fuga
23
- exercitationem. Enim?
16
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni,
17
+ tempora.
24
18
</ p >
25
19
</ div >
20
+ < div class ="second ">
21
+ < p >
22
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni,
23
+ tempora.
24
+ </ p >
25
+ </ div >
26
+ < div class ="third ">
27
+ < p >
28
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni,
29
+ tempora.
30
+ </ p >
31
+ </ div >
32
+ <!-- <div class="fourth">
33
+ <p>
34
+ Lorem ipsum dolor sit amet, consectetur adipisicing elit. Magni,
35
+ tempora.
36
+ </p>
37
+ </div> -->
38
+ < h1 > hello world</ h1 >
26
39
</ body >
27
40
</ html >
Original file line number Diff line number Diff line change 1
- .banner {
2
- border : 5px solid red;
3
- padding : 10px ;
1
+ * {
2
+ margin : 0 ;
3
+ padding : 0 ;
4
+ box-sizing : border-box;
4
5
}
5
6
6
- .first-image {
7
- float : left;
7
+ div {
8
+ height : 200px ;
9
+ width : 50% ;
10
+ float : right;
8
11
}
9
12
10
- .second-image {
11
- float : right;
12
- height : 30px ;
13
+ .first {
14
+ background : red;
13
15
}
14
- p {
15
- /* clear: right;
16
- clear: left; */
16
+
17
+ .second {
18
+ background : blue;
19
+ }
20
+
21
+ .third {
22
+ background : greenyellow;
23
+ }
24
+
25
+ .fourth {
26
+ background : fuchsia;
27
+ }
28
+
29
+ h1 {
17
30
clear : both;
18
31
}
You can’t perform that action at this time.
0 commit comments