div Wont Vertically Align

Discussion in 'HTML' started by homer, Jan 26, 2005.

  1. homer

    homer Guest


    Can someone tell me why the text in top right div wont vertically align to
    bottom? CSS vertical-align only works with images in some instances, so I
    put it in the html also, but no luck. I also tried a span tag. It always
    worked in table cells, but why not in div boxes?
    Any suggestions?
    homer, Jan 26, 2005
    1. Advertisements

  2. homer

    Spartanicus Guest

    Spartanicus, Jan 26, 2005
    1. Advertisements

  3. homer

    Steve Pugh Guest

    Because there's nothing in your CSS that could make it do so.
    Applies to: inline-level and 'table-cell' elements

    You can make the text appear lower down by setting an appropriate
    margin-top or padding-top to either the <h1> or the containing div. Or
    you can wrap the <h1> and <h2> in another div and absolutely position
    that to the bottom of the containing div.

    Steve Pugh, Jan 26, 2005
  4. homer

    Richard Guest

    Get rid of the <br> tags at the bottom of the code!
    Define a height for your menu.
    Get rid of the position absolute for the divisions.
    use float:left to position them side by side.
    For positioning a paragraph at the bottom of a cell try this:

    <p style="position:relative; bottom:5px;>
    Richard, Jan 27, 2005
  5. homer

    homer Guest

    float:left to position div boxes side by side? It works with two objects
    in one div, but not two divs. I tried nesting the two divs with the float,
    but no luck either.
    (internal css)
    homer, Jan 27, 2005
  6. homer

    Anonymous Guest

    It's the margin that's causing the problem
    Anonymous, Jan 27, 2005
  7. homer

    homer Guest

    I'll try that: Thanks.............
    homer, Jan 28, 2005
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.