Is there a way? I've got a menu div that starts out with a red background, white border and white text. I want to transition it to a white background and red text. I've gotten the background to change, but the text won't. Am I going to have to use JQuery?
HTML:
<!DOCTYPE html>
<html>
<head>
<title>GEOMETRY</title>
<link rel="stylesheet" href="infographic.css"/>
</head>
<body>
<p class="h1">GEOMETRY</p>
<p class="sub">Everything you never wanted to know.</p>
<p class="mainp">You now when you try to re-visit your high school days, but you just can't? Like when you say to yourself, "Man, I really wish I was sitting in a high school classroom learning trigonometry right now," or, "Jesus, if only I could get someone to give me a bunch of work to do, on topics I'll never remember."</p>
<p class="mainp">Well now, you've got a complete guiding resource to do it yourself!</p>
<p class="mainp">Mostly...</p>
<p class="mainp">This will give you all the information you always wish you never knew about four basic geometry concepts. Know exactly what you're looking for? Use the buttons to skip ahead.</p>
<div id="simp">
<p class="menu">Simplifying Radicals</p>
</div>
<div id="pyth">
<p class="menu">Pythagorean Theorem</p>
</div>
<div id="down">
<div id="arrow"></div>
</div>
<div id="sp">
<p class="menu">Special Triangles</p>
</div>
<div id="trig">
<p class="menu">Trigonometry</p>
</div>
</body>
</html>
CSS:
@font-face {font-family: Hip Light; src: url("Fonts/Hipstelvetica UltraLight.ttf");}
body {
background: #962626;
}
.h1 {
text-align: center;
color: white;
font-family: Hip Light, Courier, Courier New, sans-serif;
font-size: 100px;
margin-bottom: 0px;
margin-top: 70px;
text-decoration: underline;
}
.sub {
text-align: center;
color: white;
font-family: Courier, Courier New, sans-serif;
margin-top: 0px;
margin-bottom: 50px;
font-size: 20px;
}
.mainp {
text-align: center;
color: white;
font-family: Courier, Courier New, sans-serif;
margin-left: 20%;
margin-right: 20%;
}
#simp {
height: 50px;
width: 15%;
float: left;
margin-left: 6%;
margin-top: 50px;
border: 2px solid white;
border-radius: 10px;
}
#pyth {
height: 50px;
width: 15%;
float: left;
margin-left: 2%;
margin-top: 50px;
border: 2px solid white;
border-radius: 10px;
tansition: background 1s, color 1s;
-webkit-transition: background 1s, color 1s;
}
#pyth:hover {
background: white;
color: #962626;
}
#down {
height: 80px;
width: 6%;
float: left;
margin-left: 9%;
margin-top: 50px;
border: 2px solid white;
border-radius: 10px;
}
#sp {
height: 50px;
width: 15%;
float: right;
margin-right: 6%;
margin-top: 50px;
border: 2px solid white;
border-radius: 10px;
}
#trig {
height: 50px;
width: 15%;
float: right;
margin-right: 2%;
margin-top: 50px;
border: 2px solid white;
border-radius: 10px;
}
.menu {
color: white;
text-align: center;
font-family: Courier, Courier New, sans-serif;
}