Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS vertically align to the bottom of a div?

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22794
    chrisL
    Member

    Hi –
    I just read the article about absolute and relative positioning (https://css-tricks.com/absolute-position … ositioning) and am trying to implement an example without success…

    Here is my example: http://seedtracker.40digits.com/

    In my example I’m trying to get the top navigation tabs to sit at the bottom of the tan block, but by default it sits on top. The closest I have got was using the example in the article, however, it was no longer centered and floated left.

    Ideas? Perhaps there is an easier way to lay it out than what I am trying to do. I’m fairly new to CSS design.

    -chrisL

    #47988
    chrisL
    Member

    Thanks for the quick reply. That worked! I got it centered by setting the inner div width to 100%.

    However, the bottom alignment is right where I want it in IE7, it is about 10px short of the bottom when I look at it in FF?

    #47989
    pab
    Member

    you can try setting it for firefox and then through conditional comments feed the working css rules to ie7 only

    #48013
    pab
    Member
    "Adam" wrote:
    "pab" wrote:
    you can try setting it for firefox and then through conditional comments feed the working css rules to ie7 only

    It would be better to fix the general style sheet for firefox and then have a conditional style sheet for IE. If it looks wrong in FF it’s probably skewed in most other browsers too.

    yup that’s what i said

    #48020
    jhallmusic
    Member

    give it a margin:0 and it should work for ya (FF at least).

    #48028
    chrisL
    Member

    margin:0 did the trick… and it worked for both IE and FF. Thanks, jhallmusic (and others, too)

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.