954,598 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

align a div to the bottom of another div

Hi,

I have this problem with the CSS for a site that i am doing. I have a cell within a table. I have assigned a style to this box and got some elements in it using the div tag.

here is how i have set it up


<td class="parent">
<div class = "element1"> junk text </div>
<div class = "element2"> junk text </div>
<div class = "element3"> junk text </div>
<div class = "element4"> junk text </div>
<div class = "element5"> junk text </div>
</td>

What i want is how do i align the last element5 to the bottom of the since all the other 4 elements are aligned to the top of the

some help please.

pancgom29p
Newbie Poster
7 posts since Jul 2008
Reputation Points: 10
Solved Threads: 0
 

Hi,

I have this problem with the CSS for a site that i am doing. I have a cell within a table. I have assigned a style to this box and got some elements in it using the div tag.

here is how i have set it up

<td class="parent"> <div class = "element1"> junk text </div> <div class = "element2"> junk text </div> <div class = "element3"> junk text </div> <div class = "element4"> junk text </div> <div class = "element5"> junk text </div> </td> What i want is how do i align the last element5 to the bottom of the since all the other 4 elements are aligned to the top of the

some help please.

hey im sorry im not sure wht u were trying to ask but wht i did understand was that u want to display the last div below the other three. right? for that u can try this code junk text junk text junk text junk text
junk text

wickedsunny
Junior Poster in Training
97 posts since Oct 2008
Reputation Points: 10
Solved Threads: 5
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You