Author Topic: 2 images in one cell, one up the other down  (Read 138 times)

0 Members and 1 Guest are viewing this topic.

Offline jkkenzieTopic starter

  • Enthusiast
    • View Profile
2 images in one cell, one up the other down
« on: February 09, 2010, 04:46:44 AM »
I want 2 images to be in one cell, one aligned top and the other aligned bottom.
The images are repeated across( repeat-x) on css
I am constrained to do above. Any way out?

Offline RussellReal

  • Devotee
  • Gender: Male
    • View Profile
Re: 2 images in one cell, one up the other down
« Reply #1 on: February 09, 2010, 04:49:26 AM »
what do you mean? why not just put 1 image tags together then set them to block elements..

Code: [Select]
td.2imgs img {
  display: block;
}
<td class="2imgs">
  <img src="x.jpg" />
  <img src="y.jpg" />
</td>
Like my help and want to hire me? Email me or add me to MSN at RussellonMSN@hotmail.com

Offline jkkenzieTopic starter

  • Enthusiast
    • View Profile
Re: 2 images in one cell, one up the other down
« Reply #2 on: February 09, 2010, 05:07:39 AM »
The space between the two images (top and bottom images) varies according to the next cell contents.

I will try your idea But i have solved it already. I used td.class for one image and div#id for the other image, then in css specified which goes up and which down....

thanks

PHP Freaks Forums

« on: »

Tired of these ads? Purchase a supporter subscription to get rid of them.