ch04
This commit is contained in:
BIN
Chapter ZIPs/HTML/chapter7/float/.clear1.html.kate-swp
Normal file
BIN
Chapter ZIPs/HTML/chapter7/float/.clear1.html.kate-swp
Normal file
Binary file not shown.
36
Chapter ZIPs/HTML/chapter7/float/clear1.html
Normal file
36
Chapter ZIPs/HTML/chapter7/float/clear1.html
Normal file
@@ -0,0 +1,36 @@
|
||||
<!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 {float: left;
|
||||
margin-right: 10px;
|
||||
border: 3px ridge #000000;
|
||||
}
|
||||
.clearleft {clear: left; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Yellow Lady Slipper</h1>
|
||||
<div>
|
||||
<img class="float" src="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>
|
||||
<br class="clearleft">
|
||||
</div>
|
||||
<h2 >Be Green When Enjoying Wildflowers</h2>
|
||||
<p>Enjoy wild plants in their native surroundings. Protect their environment in all possible ways — support organizations dedicated to preserving their habitat. </p>
|
||||
</body>
|
||||
</html>
|
35
Chapter ZIPs/HTML/chapter7/float/clear2.html
Normal file
35
Chapter ZIPs/HTML/chapter7/float/clear2.html
Normal file
@@ -0,0 +1,35 @@
|
||||
<!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 {float: left;
|
||||
margin-right: 10px;
|
||||
border: 3px ridge #000000;
|
||||
}
|
||||
.clearleft {clear:left; }
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Yellow Lady Slipper</h1>
|
||||
<div>
|
||||
<img class="float" src="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 class="clearleft">Be Green When Enjoying Wildflowers</h2>
|
||||
<p>Enjoy wild plants in their native surroundings. Protect their environment in all possible ways — support organizations dedicated to preserving their habitat. </p>
|
||||
</body>
|
||||
</html>
|
34
Chapter ZIPs/HTML/chapter7/float/float.html
Normal file
34
Chapter ZIPs/HTML/chapter7/float/float.html
Normal file
@@ -0,0 +1,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 {float: left;
|
||||
margin-right: 10px;
|
||||
border: 3px ridge #000000;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Yellow Lady Slipper</h1>
|
||||
<div>
|
||||
<img class="float" src="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 — support organizations dedicated to preserving their habitat. </p>
|
||||
</body>
|
||||
</html>
|
BIN
Chapter ZIPs/HTML/chapter7/float/lighthouseisland.jpg
Normal file
BIN
Chapter ZIPs/HTML/chapter7/float/lighthouseisland.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 28 KiB |
37
Chapter ZIPs/HTML/chapter7/float/overflow.html
Normal file
37
Chapter ZIPs/HTML/chapter7/float/overflow.html
Normal file
@@ -0,0 +1,37 @@
|
||||
<!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;
|
||||
overflow: auto;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
h1 { background-color: #658B42;
|
||||
padding: 10px;
|
||||
color: #E1DB5F;
|
||||
}
|
||||
p { font-family: Arial, sans-serif;
|
||||
}
|
||||
.float {float: left;
|
||||
margin-right: 10px;
|
||||
border: 3px ridge #000000;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Yellow Lady Slipper</h1>
|
||||
<div>
|
||||
<img class="float" src="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 — support organizations dedicated to preserving their habitat. </p>
|
||||
</body>
|
||||
</html>
|
38
Chapter ZIPs/HTML/chapter7/float/scroll.html
Normal file
38
Chapter ZIPs/HTML/chapter7/float/scroll.html
Normal file
@@ -0,0 +1,38 @@
|
||||
<!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;
|
||||
overflow: scroll;
|
||||
width: 300px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
h1 { background-color: #658B42;
|
||||
padding: 10px;
|
||||
color: #E1DB5F;
|
||||
}
|
||||
p { font-family: Arial, sans-serif;
|
||||
}
|
||||
.float {float: left;
|
||||
margin-right: 10px;
|
||||
border: 3px ridge #000000;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Yellow Lady Slipper</h1>
|
||||
<div>
|
||||
<img class="float" src="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 — support organizations dedicated to preserving their habitat. </p>
|
||||
</body>
|
||||
</html>
|
78
Chapter ZIPs/HTML/chapter7/float/twocolumn.html
Normal file
78
Chapter ZIPs/HTML/chapter7/float/twocolumn.html
Normal file
@@ -0,0 +1,78 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>Lighthouse Island Bistro</title>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
* { box-sizing: border-box; }
|
||||
body {font-family:Verdana, Arial, sans-serif;
|
||||
background-color: #00005D;
|
||||
}
|
||||
#wrapper { background-color: #b3c7e6;
|
||||
width: 80%;
|
||||
margin: auto;
|
||||
min-width:850px;
|
||||
}
|
||||
nav { float: left;
|
||||
width: 150px;
|
||||
padding: 20px;
|
||||
}
|
||||
main { margin-left: 165px;
|
||||
background-color: #FFFFFF;
|
||||
padding: 20px;
|
||||
/* The following declaration forces IE to display
|
||||
the new HTML5 main element as needed.
|
||||
The display property is introduced in Chapter 7 */
|
||||
display: block;
|
||||
}
|
||||
header{ background-color: #869dc7;
|
||||
color: #00005D;
|
||||
font-size: 150%;
|
||||
padding: 10px 10px 10px 155px;
|
||||
}
|
||||
h1 { margin: 0; }
|
||||
h2 { color: #869dc7;
|
||||
font-family: arial, sans-serif;
|
||||
}
|
||||
main img { margin: 10px;
|
||||
float: right;
|
||||
}
|
||||
footer {font-size:70%;
|
||||
text-align: center;
|
||||
clear: right;
|
||||
padding-bottom:20px;
|
||||
margin-left: 165px;
|
||||
background-color: #FFFFFF;
|
||||
}
|
||||
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="wrapper">
|
||||
<header>
|
||||
<h1>Lighthouse Island Bistro</h1>
|
||||
</header>
|
||||
<nav>
|
||||
<a href="index.html">Home</a><br>
|
||||
<a href="rooms.html">Menu</a><br>
|
||||
<a href="directions.html">Directions</a><br>
|
||||
<a href="contact.html">Contact</a>
|
||||
</nav>
|
||||
<main>
|
||||
<img src="lighthouseisland.jpg" width="250" height="355" id="floatright" alt="Lighthouse Island">
|
||||
<h2>Locally Roasted Free-Trade Coffee</h2>
|
||||
<p>Indulge in the aroma of freshly ground roast coffee. Specialty drinks are available hot or cold.</p>
|
||||
<h2>Specialty Pastries</h2>
|
||||
<p>Enjoy a selection of our fresh-baked, organic pastries, including fresh-fruit muffins, scones, croissants, and cinnamon rolls.</p>
|
||||
<h2>Lunchtime is Anytime</h2>
|
||||
<p>Savor delicious wraps and sandwiches on hearty, whole-grain breads with locally-grown salad, fruit, and vegetables. </p>
|
||||
<h2>Panoramic View</h2>
|
||||
<p>Take in some scenery! The top of our lighthouse offers a panoramic view of the countryside. Challenge your friends to climb our 100-stair tower.</p>
|
||||
</main>
|
||||
<footer>Copyright ©
|
||||
</footer>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
BIN
Chapter ZIPs/HTML/chapter7/float/yls.jpg
Normal file
BIN
Chapter ZIPs/HTML/chapter7/float/yls.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
Reference in New Issue
Block a user