I am currently working on designing my personal portfolio using Bootstrap. I have made some progress with the setup, but I am encountering some issues.
- When I resize the window, the top menu collapses into a button. However, when I click on the button, nothing happens. The menu should drop down to reveal more options, but it is not functioning as intended, and I am unsure of the cause behind this issue.
- The three sections labeled 'I'm an artist' are almost how I want them to be, but there are a few persistent problems. I am aiming to space them out so that on desktop view, they are aligned in a box on the left, center, and right. Additionally, I want these boxes to be centered. On mobile view, I would like the sections (now vertical) to have a slight gap between them, along with a border around each section.
Below is the code snippet:
<!DOCTYPE html>
<html>
<head>
<meta charset ="utf-8">
<Title>"HorrorNerd"</Title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href = "css/bootstrap.min.css" rel ="stylesheet">
<link href = "css/styles.css" rel ="stylesheet">
</head>
<body>
<div class ="navbar navbar-inverse navbar-static-top">
<div class="container">
<a href="#" class="navbar-brand">HorrorNerd</a>
<button class="navbar-toggle" data-toggle="collapse" data-target="navHeaderCollapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<div class="collapse navbar-collapse navHeaderCollapse">
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="#">Home</a>
<li><a href="#">About</a></li>
<li><a href="#">Blog</a></li>
<li><a href="http://horrornerd.github.io/artist.html" alt="HorrorNerd's Art Gallery">Artwork</a></li>
<li class="dropdown">
<a href="#" class="dropdown" data-toggle="dropdown">Social Media <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Facebook</a></li>
<li><a href="#">Google+</a></li>
<li><a href="#">Linkn</a></li>
<li><a href="#">Pinterest</a></li>
<li><a href="#">Twitter</a></li>
</ul>
</li>
<li><a href="#">Services</a></li>
<li><a href="#contact" data-toggle="modal">Contact</a></li>
</ul>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-4">
<div class="info">
<h1>I'm An Artist</h1>
<p>Art is at the center of my life. I am always creating. Whether it be sketching,coding,listening to music or writing; Art is vital.</p>
<a href="http://horrornerd.github.io/artist.html" alt="HorrorNerd's Art Gallery" class="btn btn-danger btn-sm pull-right" >Visit Gallery</a>
</div>
</div>
<div class="col-md-4">
<div class="info">
<h1>I'm An Artist</h1>
<p>Art is at the center of my life. I am always creating. Whether it be sketching,coding,listening to music or writing; Art is vital.</p>
<a href="http://horrornerd.github.io/artist.html" alt="HorrorNerd's Art Gallery" class="btn btn-danger btn-sm pull-right" >Visit Gallery</a>
</div>
</div>
<div class="col-md-4">
<div class="info">
<h1>I'm An Artist</h1>
<p>Art is at the center of my life. I am always creating. Whether it be sketching,coding,listening to music or writing; Art is vital.</p>
<a href="http://horrornerd.github.io/artist.html" alt="HorrorNerd's Art Gallery" class="btn btn-danger btn-sm pull-right" >Visit Gallery</a>
</div>
</div>
</div>
</div>
<div class="navbar navbar-inverse navbar-fixed-bottom">
<div class="container">
<p class="navbar-text pull-left">Site by HorrorNerd.</p>
<a class="navbar-btn btn-danger btn-sml pull-right">Subscribe on Youtube</a>
</div>
</div>
<div class="modal fade" id ="contact" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h4>Contact HorrorNerd</h4>
</div>
<div class="modal-body">
<p>This is just a test for now.</p>
</div>
<div class="modal-footer">
<a class="btn btn-danger" data-dismiss="modal">Close</a>
</div>
</div>
</div>
</div>
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
</body>
</html>