I have a list with links inside each item and I want the item size to remain fixed regardless of content.
Below is the CSS code:
.files {
display: inline-block;
padding: 0;
margin: 0 auto;
}
.files li {
display: inline;
}
.files li a {
color: black;
float: left;
padding: 8px 15px;
text-decoration: none;
border: 1px solid #ddd;
margin: 0 3px;
background-color: #ffffff;
}
Here is the corresponding HTML:
<ul class="files">
<li>
<a id="some_id" href="http">123</a>
</li>
</ul>