File tree 4 files changed +69
-0
lines changed
4 files changed +69
-0
lines changed Original file line number Diff line number Diff line change
1
+ <!DOCTYPE html>
2
+ < html lang ="en ">
3
+
4
+ <!-- TODO
5
+ 1. Make both paragraph elements wrap around the image.
6
+ 2. Use Float to move the cat div to the left and the dog div to the right.
7
+ 3. Use clear to make the footer go below both the cat and dog div. -->
8
+
9
+ < head >
10
+ < meta charset ="UTF-8 ">
11
+ < title > CSS Float</ title >
12
+ < style >
13
+ div {
14
+ display : inline-block;
15
+ width : 40% ;
16
+ }
17
+
18
+ p {
19
+ font-size : 2em ;
20
+ }
21
+
22
+ .cat {
23
+ background-color : aquamarine;
24
+ float : left;
25
+ }
26
+
27
+ img {
28
+ float : left;
29
+ }
30
+
31
+ .dog {
32
+ background-color : coral;
33
+ float : right;
34
+ }
35
+
36
+ footer {
37
+ text-align : center;
38
+ background-color : blueviolet;
39
+ clear : both;
40
+ }
41
+ </ style >
42
+ </ head >
43
+
44
+ < body >
45
+ < div class ="cat ">
46
+ < h2 > CatCSS</ h2 >
47
+
48
+ < img src ="cat.jpeg " alt ="cat in a box " />
49
+ < p class ="first-paragraph "> Nap all day cat dog hate mouse eat string barf pillow no baths hate everything but kitty
50
+ poochy. Sleep on keyboard
51
+ toy
52
+ mouse squeak roll over. Mesmerizing birds. Poop on grasses licks paws destroy couch intently sniff hand. The dog
53
+ smells
54
+ bad gnaw.</ p >
55
+ </ div >
56
+ < div class ="dog ">
57
+ < h2 > DogCSS</ h2 >
58
+ < img src ="dog.jpeg " alt ="dogs in a box " />
59
+ < p class ="second-paragraph "> Heckin good boys and girls long woofer big ol wow very biscit long woofer heck what a
60
+ nice
61
+ floof, long doggo noodle
62
+ horse vvv very taste wow. Very taste wow many pats aqua doggo he made many woofs pupperino, puggo doing me a
63
+ frighten.</ p >
64
+ </ div >
65
+
66
+ < footer > Copyright. This is the footer</ footer >
67
+ </ body >
68
+
69
+ </ html >
You can’t perform that action at this time.
0 commit comments