Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix offsets with scrolling

  • Loading branch information...
commit 0da0dc1979e9a18b41af49d89b56521257392e8e 1 parent 30346ab
@adelcambre authored
View
6 assets/css/application.css
@@ -39,12 +39,6 @@
margin: 0 auto;
padding: 0 1px;
}
- .subnav .nav > li:first-child > a,
- .subnav .nav > li:first-child > a:hover {
- -webkit-border-radius: 0;
- -moz-border-radius: 0;
- border-radius: 0;
- }
}
.subnav-padding {
height: 34px;
View
2  assets/js/application.js
@@ -29,4 +29,6 @@
}
}
})
+ // wait for images to load?
+ setTimeout(function() { $('[data-spy="scroll"]').scrollspy("refresh") }, 100)
}(window.jQuery)
View
14 index.html
@@ -39,6 +39,7 @@
<ul class="nav nav-pills">
<li><a href="#work">Work</a></li>
<li><a href="#play">Play</a></li>
+ <li><a href="#travel">Travel</a></li>
</ul>
</div>
</header>
@@ -46,17 +47,22 @@
<div class="page-header">
<h1>Work</h1>
</div>
- <p>Some stuff andy works on
+ <p>Some stuff andy works on</p>
<img src="http://farm4.staticflickr.com/3247/2932373554_fc0f460867_z.jpg"/>
- </p>
</section>
<section id="play">
<div class="page-header">
<h1>Play</h1>
</div>
- <p>Some stuff andy plays with
+ <p>Some stuff andy plays with</p>
<img src="http://farm8.staticflickr.com/7020/6671600483_7a69c17354_z.jpg"/>
- </p>
+ </section>
+ <section id="travel">
+ <div class="page-header">
+ <h1>Travel</h1>
+ </div>
+ <p>Andy likes to travel too</p>
+ <img src="http://farm5.staticflickr.com/4131/5047564027_115c9942f1_z.jpg"/>
</section>
</div>
<!-- Le javascript
Please sign in to comment.
Something went wrong with that request. Please try again.