Hi,
I want to vertical align a paragraph to the middle of an image, but I'm having issues:-
I've got the following CSS:-
img.mugshot {
float: left;
vertical-align: middle;
margin-right: 10px;
margin-bottom: 10px;
}
#aboutus p {
clear: left;
}
When I float the image the vertical-align no longer works, but without the float only one line of text appears next to the image, the rest is shoved underneath....
This is a doddle using tables, but I'm determined not to return to the dark side.
Any suggestions would be appreciated!
Thanks,
Toby
I want to vertical align a paragraph to the middle of an image, but I'm having issues:-
I've got the following CSS:-
img.mugshot {
float: left;
vertical-align: middle;
margin-right: 10px;
margin-bottom: 10px;
}
#aboutus p {
clear: left;
}
When I float the image the vertical-align no longer works, but without the float only one line of text appears next to the image, the rest is shoved underneath....
This is a doddle using tables, but I'm determined not to return to the dark side.
Any suggestions would be appreciated!
Thanks,
Toby