Jump to content

positioning in cells


Guest neo_coder

Recommended Posts

Guest neo_coder

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...