Jump to content
Sign in to follow this  
Guest neo_coder

positioning in cells

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

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...