Semester 3 pog
This commit is contained in:
30
Semester 1/Chapter ZIPs/HTML/chapter6/size/contain.html
Normal file
30
Semester 1/Chapter ZIPs/HTML/chapter6/size/contain.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>contain</title>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
div {
|
||||
background-image: url(myislandback.jpg);
|
||||
background-size: contain;
|
||||
background-repeat: no-repeat;
|
||||
width: 200px;
|
||||
padding: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="test">
|
||||
<h1>Tropical Island</h1>
|
||||
<p>
|
||||
Enjoy relaxing in the warm sunshine on your own tropical island retreat.
|
||||
</p>
|
||||
Tropical Island Features:
|
||||
<ul>
|
||||
<li>Private Beach</li>
|
||||
<li>Personal Valet</li>
|
||||
<li>Free Wi-Fi</li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
30
Semester 1/Chapter ZIPs/HTML/chapter6/size/cover.html
Normal file
30
Semester 1/Chapter ZIPs/HTML/chapter6/size/cover.html
Normal file
@@ -0,0 +1,30 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>cover</title>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
div {
|
||||
background-image: url(myislandback.jpg);
|
||||
background-size: cover;
|
||||
background-repeat: no-repeat;
|
||||
width: 200px;
|
||||
padding: 20px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="test">
|
||||
<h1>Tropical Island</h1>
|
||||
<p>
|
||||
Enjoy relaxing in the warm sunshine on your own tropical island retreat.
|
||||
</p>
|
||||
Tropical Island Features:
|
||||
<ul>
|
||||
<li>Private Beach</li>
|
||||
<li>Personal Valet</li>
|
||||
<li>Free Wi-Fi</li>
|
||||
</ul>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
Semester 1/Chapter ZIPs/HTML/chapter6/size/myislandback.jpg
Normal file
BIN
Semester 1/Chapter ZIPs/HTML/chapter6/size/myislandback.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 30 KiB |
32
Semester 1/Chapter ZIPs/HTML/chapter6/size/sedona.html
Normal file
32
Semester 1/Chapter ZIPs/HTML/chapter6/size/sedona.html
Normal file
@@ -0,0 +1,32 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en">
|
||||
<head>
|
||||
<title>CSS3 background-size</title>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
body { min-width: 640px; }
|
||||
#test { background-image: url(sedonabackground.jpg);
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
#test1 { background-image: url(sedonabackground.jpg);
|
||||
background-size: 100% 100%;
|
||||
background-repeat: no-repeat;
|
||||
}
|
||||
h1 { text-align: center;
|
||||
color: #663300;
|
||||
text-shadow: 2px 2px 2px #ffffcc;
|
||||
font-family: "Chaparral Pro", Georgia, serif;
|
||||
line-height: 200%; font-size: 3em;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test">
|
||||
<h1>Casita Sedona</h1>
|
||||
</div>
|
||||
<div id="test1">
|
||||
<h1>Casita Sedona</h1>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
BIN
Semester 1/Chapter ZIPs/HTML/chapter6/size/sedonabackground.jpg
Normal file
BIN
Semester 1/Chapter ZIPs/HTML/chapter6/size/sedonabackground.jpg
Normal file
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
Reference in New Issue
Block a user