I have a div at 100%, in order to center things i have an anchor tag inside i only want at 85px width, but it is not recognizing this and will just expand based on the length of text that is in the anchor tag.
HTML:
<div class="players_names">
<a class="player_name" href="#">34 J. Langenbrunner</a><br />
<a class="team_name" href="#">TORONTO</a>
</div>
CSS:
.players_names{
width: 100%;
position: relative;
z-index: 3;
text-align: center;
}
.players_names a{
color: #fff;
}
.players_names a.player_name {
width: 85px;
font-size: 1.1em;
text-align: center;
line-height: 1;
}
why can't it just do what i tell it to do?