From 1b41d6a94f98d2582d4fbe624fd5550b8582e9cf Mon Sep 17 00:00:00 2001 From: Craig Quincy Date: Wed, 8 Feb 2017 02:34:35 -0700 Subject: [PATCH 01/10] in class css exercises --- css/style.css | 40 ++++++++++++++++++++++++++++++++++++++++ index.html | 30 +++++++++++++++++------------- 2 files changed, 57 insertions(+), 13 deletions(-) diff --git a/css/style.css b/css/style.css index 0de243a..e674d20 100644 --- a/css/style.css +++ b/css/style.css @@ -14,20 +14,60 @@ nav ul li { display: inline; } +nav ul li a, nav ul li a:visited, nav ul li a:active { + color: white; +} + +nav ul li a:link { + color: white; + text-decoration: none; +} +nav ul li a:hover { + color: #F15323; + text-decoration: underline; +} + +.cards-container .card:nth-child(even) { + background-color: white; +} + +.cards-container .card:nth-child(odd) { + background-color: #ccc; +} + .card { + float: left; margin: 2em; padding: 2em; border-radius: 5px; } +.card h3 { + position: absolute; + margin: 80px 40px; +} + .card > img { height: 200px; width: 150px; } +.clear { + clear: both; +} + +input[type="text"]{ + background-color: #76B821; + color: black; +} + footer { background-color: #F15323; width: 100%; + position: fixed; + left: 0; + bottom: 0; + z-index: -1; } footer p { diff --git a/index.html b/index.html index 81740d2..73911d1 100644 --- a/index.html +++ b/index.html @@ -3,6 +3,8 @@ Exploding Kittens + +