Running into a formatting issue while working on my personal website. New elements are not starting on a new line but rather to the right of a div containing a picture gallery.
A visual representation can be seen in this screenshot... https://i.sstatic.net/edLFf.jpg
I want the circled elements below the gallery div as shown in the code snippet below:
<!-- Gallery Code -->
<div id="gallerydiv">
<div class="gallery">
......
</div>
<div class="gallery">
......
</div>
.
.
.
</div>
<!-- App functionality explanation -->
<p>Essentially, this app stores tickets in text files inside the working directory. By using tags similar to HTML, the individual tickets can be pulled and stored.</p>
<br height="500px">
<h2>Advanced Youtube Search</h2>
Additionally, here's the CSS styling for the gallery:
div.gallery {
margin: 5px;
border: 1px solid #ccc;
float: left;
width: 180px;
height: 190px;
}
div.gallery:hover {
border: 1px solid #777;
}
div.gallery img {
width: 100%;
height: auto;
}
div.desc {
padding: 15px;
text-align: center;
}
#gallerydiv {
width: 1000px;
margin: auto;
}
I've attempted utilizing line breaks and setting the gallery width to 100% among other things, but have yet to resolve the issue.