Rachid O
Rachid O

Reputation: 14002

Make text at bottom of div

How can i make a text stick at the bottom of a div. i tried this:

dd{
position: relative;
bottom: 0;
width: 100%;
}

but it doesn't work. jsfiddle

Upvotes: 0

Views: 119

Answers (3)

WearFox
WearFox

Reputation: 293

you have a error in your sintaxis you miss the 'px' in the bottom property and the height to be referenced, the position can be relative or not depend of the location of your object

 dd{
    position: absolute;
    bottom: 0px;
    width: 100%;
    height: 210px;
}

this is the correct code: Live CODE http://jsfiddle.net/gdxucte6/3/

Upvotes: 0

Nick
Nick

Reputation: 2551

Change your relative position to absolute.

Upvotes: 0

Matthias
Matthias

Reputation: 637

You have to use position: absolute;

You have to set the parent div to something else than position: static; like position: relative;

Upvotes: 3

Related Questions