-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathex3.php
More file actions
executable file
·70 lines (68 loc) · 2.65 KB
/
Copy pathex3.php
File metadata and controls
executable file
·70 lines (68 loc) · 2.65 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!-- Always specify a DOCTYPE and an XML Specification -->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>CPSC 471 Course Project</title>
<script type="text/javascript" src="js/jquery-1.8.0.min.js"></script>
<script type="text/javascript">
$(function() {
$(".baby").hover(function(){
$(this).css({"background":"#000","color":"white"});
}, function() {
$(this).css({"background":"#008","color":"white"});
})
});
</script>
<!-- The 'style' tag defines an inline CSS stylesheet to format the items on the page -->
<style>
/* Select the element with the id of "centerme" */
#centerme {
/* the element will be 200px wide, have a 0px margin on the top and bottom, and margins of equal maximum value on the left and right (causing the centering), and a background color of light red */
width: 200px;
margin: 0px auto;
background: #FCC;
}
/* Select the element with the id of "daddy" */
#daddy {
/* This element will be positioned relative to its parent object, this type of positioning is usually better to avoid */
position: absolute;
/* Position it flush to the side of the window, and 50 pixels from the bottom of the window */
right: 0px;
bottom: 50px;
width: 300px;
/* in addition to hexadecimal colors, some colors can be specified by their english name */
background: cyan;
}
/* Select all elements with the class "baby" */
.baby {
/* margins are outside of the element */
margin: 10px;
/* borders are between the margin and the padding */
border: 1px solid white;
/* padding is between the child elements and the border */
padding: 50px;
/* you can also specify font size, and many other font properties with CSS */
font-size: 30px;
}
</style>
</head>
<body>
<div id="centerme">
This div tag should be centered. Hit a baby to go back to the homepage.
</div>
<a href="./">
<div id="daddy">
<div class="baby">
Baby 1
</div>
<div class="baby">
Baby 2
</div>
<div class="baby">
Baby 3
</div>
</div>
</a>
</body>
</html>