#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Posts
    12
    Rep Power
    0

    Unhappy css vertical text align


    hi. i'm trying to have some text in a div, but also i want the text align to the bottom of the div. something like. but i don't know how... have a look at http://www.desorden.net/prueba.html

    any ideas? thanks in advance
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2003
    Location
    Lyon, France
    Posts
    49
    Rep Power
    12
    place the text into an absolutely positioned wrapper div and then set this divs bottom position using css e.g.

    div.wrapper {
    position:absolute;
    left:0;
    bottom:0;
    }

    <div>
    <div class="wrapper">my text</div>
    </div>

    This will work only if the parent div is relatively or absolutely positioned.
  4. #3
  5. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2001
    Posts
    12
    Rep Power
    0
  6. #4
  7. Thanks Johnny Hart (BC) R.I.P.

    Join Date
    May 2003
    Location
    Dallas
    Posts
    5,268
    Rep Power
    1956
    I believe you mis-interpreted OCB's instructions. See this example for working code.

    cheers,

    gary
    There are those who manage to build a web site without knowing what they're doing; thereby proving to themselves they do, indeed, know what they're doing.

    My html and css workshop, demos and tutorials.
    Ask a better question, get a better answer.

IMN logo majestic logo threadwatch logo seochat tools logo