Guest neo_coder Posted October 6, 2005 Share Posted October 6, 2005 Can anyone tell me how to align an image to the right and the text to the left in the same table cell in CSS.thx a lot Link to comment Share on other sites More sharing options...
F-Man Posted October 6, 2005 Share Posted October 6, 2005 That seems weird. Something tells your table won't be quite traditionnal.Anyway, try this <td> <span style="margin-right: 50px;">Text</span> <img src="www" alt="Text" width="50" height="50" style="float: right;" /></td> Change the 50px to the size of the width of your image, same for width/height valued.You might also consider placing the image as a background positionned to the right. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now