• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Aligning text with CSS

I have a line of text that I have centered horizontally on my page using text-align: center, but I want to know if I can align it in the center vertically as well.

I have an image that sits beside the text, and I want the text to be aligned in the vertical center of the image instead of sitting beside the bottom of the image.

Can this be done?
 
I use the CSS below for images, wraps the text around images and such... might help in your attempts.

.imgfloatright { float : right; margin-left: 5px; }

.imgfloatleft { float : left; margin-right: 5px; }
 
Back
Top