I have a stack of three, w3-card, elements on my HTML sheet that are next to each other in a row. I've been working on this since this past Friday and I've tried everything I can think of.
Here's what I got for my code:
<div class="w3-cell-row">
<a href="www.testsite.com" style="color: #232f3e";>
<div class="w3-cell w3-third">
<div class="w3-container w3-card" style="text-align: center;">
<h3>
<br/>
</h3>
<h3>h3 title<br/><br/></h3>
<div>
<i class="fa fa-info-circle" aria-hidden="true" style="font-size: 120px;"></i>
<br/><br/>
</div>
<div>
<h4>Click here for:<br/></h4>
</div>
<div>
<br/>
<p>text<br/></p>
<p>text<br/></p>
<p>text<br/><br/></p>
<br/>
</div>
</div>
</div>
</a>
<a href="www.testsite2.com" style="color: #232f3e";>
<div class="w3-cell w3-third">
<div class="w3-container w3-card" style="text-align: center;">
<h3>
<br/>
</h3>
<h3>h3 title<br/><br/></h3>
<div>
<i class="fa fa-question" aria-hidden="true" style="font-size: 120px;"></i>
<br/><br/>
</div>
<div>
<h4>Click here for:<br/></h4>
</div>
<div>
<br/>
<p>text<br/></p>
<p>text<br/></p>
<p>text<br/><br/></p>
<br/>
</div>
</div>
</div>
</a>
<a href="www.testsite3.com" style="color: #232f3e";>
<div class="w3-cell w3-third">
<div class="w3-container w3-card" style="text-align: center;">
<h3>
<br/>
</h3>
<h3>h3 title<br/><br/></h3>
<div>
<i class="fa fa-globe" aria-hidden="true" style="font-size: 120px;"></i>
<br/><br/>
</div>
<div>
<h4>Click here for:<br/></h4>
</div>
<div>
<br/>
<p>test<br/></p>
<p>test<br/></p>
<p>tests<br/></p>
<p>tests<br/></p>
<p>tests<br/></p>
<p>tests<br/></p>
<p>tests<br/></p>
<br/>
</div>
</div>
</div>
</a>
</div>
In one card, I have a bunch of text that pushes the bottom further out than the other two cards. The a href tag surrounds each individual card so that it's clickable. I'm also using FontAwesome.css to add icons.
What I want is for all three cards to match the height of the card with the most text in it. So, if content should change and one box gets more text than another, it will line up at the top and bottom of all three cards (in a row). This should stay the same if the window should change in width as well.
Here is the reference for the W3.css code I'm using and here is the location of the style sheet itself. Also, here is the specific reference I am using in the code to try to make this work.
Thank you very much for your time.
Edit: I tried using the flex property by assigning the main div with class "w3-cell-row" with class "flex-test". Then, I assigned this class with the following properties on my CSS file:
.flex-test {
display: flex;
flex-direction: row;
}
The w3-third property messes up everything and when I remove it, I get a semi-ok look where it's basically the same thing: no adjusting for a uniform bottom.
` tag does not use and does not need a closing slash and never has in HTML. – Rob Dec 16 '19 at 22:30