I'm in the process of making a simple webpage, and have run into a wall. Right now, I have a few buttons laid out on the page with the slideToggle animation, and when you click one, a paragraph opens directly under the button. My question is, how can I get all of these separate paragraphs to appear in the same spot? I want them to all appear at the bottom of the page, so that when you click a button, none of the other buttons jump around awkwardly on the page. Here's my HTML:
<h2>Click to learn more about me!</h2>
<div class="trait">
<button>Trait1</button>
</div>
<p class="note">Blah</p>
<div class="trait">
<button>Trait2</button>
</div>
<p class="note">BlahBlah</p>
<div class="trait">
<button>Trait3</button>
</div>
<p class="note">BlahBlahBlah</p>
And here's my CSS:
div {
display: inline-block;
}
div p {
position: relative;
margin-top: 450px;
}
button {
border-radius: 100%;
height: 150px;
width: 150px;
}
.note {
color: white;
font-size: 30px;
position: relative;
bottom: 0;
}