Skip to content

Commit

Permalink
Day 2 - Session 4
Browse files Browse the repository at this point in the history
  • Loading branch information
Sathvik P committed Feb 21, 2015
1 parent aeda0b9 commit e5eb5b8
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
17 changes: 13 additions & 4 deletions Google/css/main.css
Expand Up @@ -74,18 +74,21 @@ ul.list-inline-1 li {
.list-inline li:first-child {
color: purple;
}
.list-inline li: last-child {
.list-inline li:last-child {
color: darkgreen;
}
.list-inline li: nth-child(2n) {
.list-inline li:nth-child(2n) {
text-decoration: underline;
}
.list-inline li: nth-child(2n+1) {
.list-inline li:nth-child(2n+1) {
background: red;
}
.list-inline li: nth-child(1) {
.list-inline li:nth-child(1) {
background: yellow;
}
.list-inline:only-of-type {
font-size: 10px;
}
/* 2n=2*n:
n=0 -> 0
n=1 -> 2
Expand All @@ -98,3 +101,9 @@ ul.list-inline-1 li {
n=2 -> 5
*/


/* 2n+3=2*n+3:
n=0 -> 3
n=1 -> 5
n=2 -> 7
*/
4 changes: 4 additions & 0 deletions Google/index.html
Expand Up @@ -24,6 +24,10 @@
<li>Hindi</li>
<li>Urdu</li>
</ul>
<ul class="list-inline">
<li>Hello</li>
</ul>
<p class="list-inline">Hello</p>
</div>
</div>
</body>
Expand Down

0 comments on commit e5eb5b8

Please sign in to comment.