Hey all you web geeks out there, I could really use your help solving a little issue.
I've been working with Bootstrap to build a website that utilizes scrollspy for navigating different sections of the page using the navbar. The only way I could stop the URL from showing "#section-2"
when scrolling was by calling my JavaScript in the <head>
.
Here's the problem...
I tried adding an FAQ section as its own separate page, and wanted it to link back to specific parts of the original page.
It seems like the FAQ <a> tag
doesn't work unless the browser is resized...
Two bugs already with scrollspy! Is it common for Bootstrap to have this many issues?
Check out the code below:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>
Day & Night | Responsive Web Design
</title>
<link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css">
<link href="//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css" rel="stylesheet">
<meta name="viewport" content="initial-scale=1, maximum-scale=1">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<script type="text/javascript" src="http://code.jquery.com/jquery.min.js">
</script>
<script src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js">
</script>
</head>
...
</body>
</html>