2 replies [Last post]
SMT
Offline
newbie
Last seen: 15 years 7 weeks ago
Joined: 2007-12-20
Posts: 2
Points: 0

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:

http://smtdesigns.co.uk/rideonmowers/rom.css

rmfred
rmfred's picture
Offline
Elder
Rock Springs, WY
Last seen: 4 years 17 weeks ago
Rock Springs, WY
Timezone: GMT-6
Joined: 2004-01-31
Posts: 1073
Points: 31

not tested.... try giving it

not tested....
try giving it a line-height and then using vertical-align: middle

SMT
Offline
newbie
Last seen: 15 years 7 weeks ago
Joined: 2007-12-20
Posts: 2
Points: 0

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