Hello there!
I've run into a height and border issue with a div. Here's the CSS I'm currently working with:
.content
{
background-image: url(../../images/logo-04.png);
background-position: left bottom;
background-repeat: no-repeat;
background-size: 30%;
border-bottom: 0.1em solid #000000;
border-bottom-left-radius: 1em;
border-bottom-right-radius: 1em;
border-top: 0.1em solid #000000;
display: inline-block;
width: 100%;
}
.content-left
{
float: left;
font-size: 100%;
text-align: justify;
width: 74%;
}
.content-right
{
border-left: 1px solid #000000;
float: right;
font-size: 80%;
height: 100%;
text-align: right;
width: 25%;
}
And here is part of the HTML code that corresponds to the styles above:
<div class="container2">
<!-- Content -->
<div class="content">
<div class="content-left">
</div>
<div class="content-right">
<div class="sidelinks">
<ul>
<li><a class="link3" href=""></a></li>
<li><a class="link3" href=""></a></li>
</ul>
</div>
<div class="social">
<---End--!>
All the divs in my code are properly closed, so I omitted them for brevity.
I'm struggling to make the left border extend the full length of the content-right div without using pixels (e.g., height: 500px). When I use percentage (height: 100%), the border only covers the contents inside the content-right div.
Does anyone have suggestions on how I can achieve the desired effect?