Thu, 2007-12-20 21:07
I'm quite new to CSS and using DIVs and I'm trying to self teach myself. However I've come across a problem I can't find a solution to:
http://smtdesigns.co.uk/rideonmowers/
On the menu on the left, I'd like to have the text next to the images centered vertically but I don't know how to do it in the CSS.
I've centered the image by giving it padding but doing that with the text ruins the menu layout.
Links to css file:
Thu, 2007-12-20 21:40
#1
not tested.... try giving it
not tested....
try giving it a line-height and then using vertical-align: middle
Thu, 2007-12-20 22:27
#2
Hi rmfred. I did try that
Hi rmfred. I did try that and it sort of works, the only problem is, in one of the boxes I have the text on two lines, so when I do that it shifts the second line into the box below it.
Know anyway around that?
Cheers,
Steve