Welcome visitor
* Login
* Register
It is currently May 21st, 2019, 12:34 am
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  Align 2 images one according the other
PostPosted: January 7th, 2010, 7:08 am 
User avatar

Posts: 52
Hi, i have 2 images together inside a table cell, this is my code:
<table>
<tr>
  <td>text...</td><td>more text...</td>
</tr>
<tr>
  <td>huge text...<img src="hp120909_8321.jpg" /><img src="hp120909_8327.jpg" /></td>
  <td>a few more text</td>
</tr>
</table>

So, both images are together but one is taller than the other, how could I align the second one to be at the middle of the first?


Top
 Profile  
 
  Re: Align 2 images one according the other
PostPosted: January 8th, 2010, 6:42 am 
User avatar

Posts: 86
This is how the code for the cell with images should look like:
<td>huge text...<div style="display:table">
<div style="display:table-cell"><img src="hp120909_8321.jpg" /></div>
<div style="display:table-cell; vertical-align:middle;"><img src="hp120909_8327.jpg" /></div>
</div></td>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron