I have a link labeled Get D1 which I need to center in the middle of the page. I tried text-align:center, but that works on the text itself and doesn’t actually center the link in the middle of the page. Does anyone know the css trick for this?
<div id="allds">
<div id="d1">
<a href="http://someurl.com" id="d1link">Get D1</a>
</div>
<div id="d2">
content of d2
</div>
</div>
If you don’t want to specify a width, you need to use an alternate technique.