Using Head First and I'm confused...
Furry Friend Campaigns
Ok so I bought head first a couple of weeks ago and just got around to using it. and I think i typed something wrong because the code doesn't work.
Here is the code to the Index.html
- <html>
- <head>
- <title>Furry Friend Campaigns</title>
- <link rel="stylesheet" type="text/css"
-
- href="styles/my_style.css">
- </head>
- <body>
- <div id="#clickMe">Show me the furry friend of the
-
- day</div>
- <div id="#picframe"><img
-
- src="images/furry_friend.jpg"></div>
- <script src="scripts/jquery-1.11.3.min.js"></script>
- <script>
- $(document).ready(function(){
- $("#clickMe").click(function() {
-
- $("img").fadeIn(1000);
- $("#picframe").slideToggle("slow");
-
- });
-
- });
-
- </script>
-
- </body>
-
- </html>
-
Here is the code to the Style sheet
- #clickMe {
- background:#D8B36E
- Padding:20px;
- text-align: center:
- width: 205px;
- display:block;
- border: 2px solid #FFF;
-
- }
-
- #picframe {
- background:#D8B36E
- Padding:20px;
- text-align: center:
- width: 205px;
- display:block;
- border: 2px solid #FFF;
-
- }