0
How do I center a "a" link horizontally and vertically in the center of a div?
<div id="header_right">
<a>A</a>
<a>B</a>
<a>C</a>
</div>
CSS:
#header_right {
width: 342px;
background: yellow;
}
0
How do I center a "a" link horizontally and vertically in the center of a div?
<div id="header_right">
<a>A</a>
<a>B</a>
<a>C</a>
</div>
CSS:
#header_right {
width: 342px;
background: yellow;
}
1
Add to css:
text-align: center;
vertical-align: middle;
0
<div id="header_right">
<table width="100%" height="100%">
<tr valing="middle" align="center">
<td><a>A</a></td>
<td><a>B</a></td>
<td><a>C</a></td>
</tr>
</table>
</div>
Browser other questions tagged html css
You are not signed in. Login or sign up in order to post.
True, I edited the answer to add the vertical.
– Júlio Neto