Reply LinkBack Thread Tools Search this Thread
Old 19-04-2007, 09:01   #1 (permalink)
John Good
+
 
John Good's Avatar
 
Join Date: May 2005
Location: Tropical Networks
Posts: 1,603
align a paragraph at the bottom of a container

Hello,
The design is the attached image.
I need to bring the author paragraph at the bottom, and I can't figure how...

here is the HTML

HTML Code:
<div class="project"> <div class="projectContent"> <img class="floatLeft" src="http://www.designerstalk.com/forums/images/imageBloc.gif" alt="" /> <p class="details">lorem ipsum dolor sin amet<br />lorem ipsum dolor sin amet<br />lorem ipsum dolor</p> <p class="author">lorem Ipsum</p> </div> <div class="clearfix"> </div>

projectContent is set to height: 225 (height of the image)


everything is ok, just this author p sucks.

help !
Attached Thumbnails
align-paragraph-bottom-container-bloc.gif  
__________________
Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
  Reply With Quote
Old 19-04-2007, 09:41   #2 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
position:relative on the projectContent then absolutely position author bottom:0
__________________
George Smith - a vain attempt to get higher on google for my name

  Reply With Quote
Old 19-04-2007, 09:46   #3 (permalink)
djeglin
goober :-)
 
djeglin's Avatar
 
Join Date: Dec 2006
Location: Birmingham, UK
Posts: 533
Send a message via MSN to djeglin
Yep. Slightly different problem, but same solution as I posted a few hours ago... Tisk tisk... An older member that doesnt religiously keep up on every new post on the board? You do surprise me lol :P
  Reply With Quote
Old 19-04-2007, 13:07   #4 (permalink)
John Good
+
 
John Good's Avatar
 
Join Date: May 2005
Location: Tropical Networks
Posts: 1,603
Quote:
Originally Posted by stickmus
position:relative on the projectContent then absolutely position author bottom:0

f***, it works !
I don't understand the logic in all that.

In my screwed mind, it should be

.author{
position: relative; /*relative to his parent*/
bottom: 0px;
}


thanks anyway, it works now...
__________________
Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
  Reply With Quote
Old 20-04-2007, 10:45   #5 (permalink)
stickmus
hmmm...
 
stickmus's Avatar
 
Join Date: Jan 2004
Location: Yorkuk
Posts: 2,127
One of the things position:relative does is say 'any absolutely positioned content in me gets positioned relative to me'.
__________________
George Smith - a vain attempt to get higher on google for my name

  Reply With Quote
Old 20-04-2007, 11:00   #6 (permalink)
John Good
+
 
John Good's Avatar
 
Join Date: May 2005
Location: Tropical Networks
Posts: 1,603
Obviously...
I've been searching to fix the same thing once or twice, but I never seem to be able to remember it.

thanks.
__________________
Fonts are like cologne: A bad choice speaks louder than a good one. Justin Feinstein
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8