summaryrefslogtreecommitdiffstats
path: root/HTML/Chapter/Ch. 7 hands-on assignments/Ch7_msglm/ch7float/7.2.floatlys.html
blob: e2c486606a61144d784f4b45c1d69d11b6465c9c (plain) (blame)
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
<!DOCTYPE html>
<html lang="en">
<head>
<title>CSS Float</title>
<meta charset="utf-8">
<style>
body { width:500px;
       background-color:#FFFFFF;
       color:#000000;
}
div {  background-color:#F3F1BF;
}
h1 {   background-color:#658B42;
       padding:10px;	
       color: #E1DB5F;
}
p {    font-family:Arial,sans-serif;  
 }
float, margin, and border properties:
.float { float: left;
         margin-right: 10px;
         border: 3px ridge #000000; }
</style>
</head>
<body>
<h1>Yellow Lady Slipper</h1>
<div>
  <img class=float src="7.2.yls.jpg" alt="Yellow Lady Slipper" height="100" width="100">
  <p>The Yellow Lady Slipper grows in wooded areas and blooms in June each year. The flower is a member of the orchid family.</p>
</div>
<h2>Be Green When Enjoying Wildflowers</h2>
<p>Enjoy wild plants in their native surroundings. Protect their environment in all possible ways &mdash; support organizations dedicated to preserving their habitat. </p> 
</body>
</html>