tags:

views:

140

answers:

2

dear i have define on ul

 <ul id="album">
 <li id="list1">
 <a href="#">
<img src="google.jpg" height="50"/> 
</a>
<a href="#" class="user-title">Profile Pictures</a>
1 Picture
</li>

 <li id="list1">
 <a href="#">
<img src="yahoo.jpg" height="150"/> 
</a>
 <a href="#" class="user-title">Profile Pictures</a>
 2 Picture
</li>
 </ul>

css for is as bellow.

     #album{
height:195px;
width:155px;
overflow:hidden;
padding:6px 10px 14px 10px;
    float:left;

  }
#album li{
 border:0; 
 padding:0;
 list-style:none;
 margin: 0 0.15em;
 list-style:none;
 display: inline;
   }

   #album img{
  vertical-align:bottom;
   }
 #album a{
  color:#000000;
  text-decoration:none;

 }
 #album .user-title{
  display:block;
  font-weight:bold;
  margin-bottom:4px;
  font-size:11px;
  color:#36538D;
 }
 #album .addas{
  display:block;
  font-size:11px;
  color:#666666;
 }
 #album img{
  margin-right:14px;
  padding:4px;

 }

this is working fine.

but i need to align images to bottom on display.

here is image

A: 

I believe you're looking for the vertical-align property. i.e.

li {
    vertical-align: bottom;
}
Dark Falcon
no its not working
air
A: 

I see the screenshot and now it's clear what you mean. Your initial example was far from valuable, it was incomplete. I copypasted it and I see all li's below each other, all perfectly aligned at bottom. You should have created a short, self contained, correct example which reproduces exactly the problem you have. Thus, from <html> to </html> including the doctype and the minimum required styles.

Now I'm guessing, but it look like that you have used float: left; on the li elements instead of display: inline; to display them next each other (inline) instead of below each other (block). The floats are by default aligned to top of the containing element and the display-inline is by default aligned to bottom of the containing element. Fix it accordingly and see if that helps in your case.

BalusC
its same even i add display:inline; i also include full css in page.thanks
air