Reputation: 36826
I am trying to vertically center an anchor within a fieldset using CSS but it always appears to align to bottom. Is there any tricks to this?
Upvotes: 1
Views: 2822
Reputation: 7203
Try setting the style vertical-align:middle;
<a href="www.google.com" style="vertical-align:middle;">google</a>
If that doesn't work posting your HTML would be helpful
Upvotes: 0
Reputation: 9600
You are not giving too much detail here. Besides the line-height you might also want to tweak top and bottom padding. It all depends on how much stuff you have inside the fieldset.
Upvotes: 1
Reputation: 3419
Have you tried specifying a line-height for the text? It should help to align in both Firefox and IE.
Upvotes: 0