Say you have a text-link (see below) next to a picture. Due to the table setup they are both the top in the table. However, the text-link is not totally at the top due to the picture next to it. It is actually aligned with bottom of the picture. Is there a way of lifting the text a little higher so it could be one or two pixels higher?
I tried it with <div> and ‘style’ but didn’t manage.
One very quick way to move the link up is with its “vertical-align” property in CSS:
a { vertical-align:top }
(You’ll probably want to use a different selector; that will affect every link on the page!)
It’s not terribly elegant, however. You asked for just a couple of pixels. This aligns the link to the very top of the image, rather than the bottom. It looked fine in my quick-n-dirty test page with default font styles, but your mileage may vary.
I’m sure the real experts around here can come up with other ways to accomplish this
That CSS cites a class called “outs” that doesn’t appear in your HTML above, so we can’t really comment.
BTW, in your :hover styles, you don’t need to re-declare anything that’s the same, such as font families, font size, color etc. Just declare anything that’s different.