https://i.sstatic.net/QmE8k.png
.customProgramTemplate {
background-color: rgba(0, 0, 0, 0.75);
width: 400px;
height: 185px;
border-radius: 8px;
margin: auto;
color: white;
padding: 0;
}
.customProgramButton {
text-decoration: none;
text-align: center;
padding: 0;
}
<a href="https://github.com/Necrosis000/Necrosis-Random-Colour-Generator" class="customProgramButton">
<div class="customProgramTemplate">
<p class="programTitle">Custom Programs</p>
<p class="programDesc">Click here to go to a list of my custom programs/websites</p>
</div>
</a>
I'm facing an issue where the width of my elements is exceeding the size of the div container. The blue part should fit around the red part but it's extending beyond and stretching across the entire screen.
The height seems to be fine, it's just the width that's causing trouble.