Looking at my HTML file...
<div>
<p>This is where I have my text content...</p>
<p><a href="#">Link 1</a><a href="#">Link2</a></p>
</div>
Here is the accompanying CSS:
div {
width:960px;
border:1px solid;
margin:0 auto;
}
a {
padding:10px 10px 50px 10px;
margin-right:20px;
border:1px solid red;
}
An issue arises with my anchors as they extend beyond the boundaries of the parent div due to a total padding of 60px. Since the content length varies, I cannot set a fixed height for the div. Any suggestions on how to determine the width of the div to contain the anchors within it?