• RobotHero

    (@robothero)


    On this example page, what would be the best way for me to line up the bottom of the title ‘Time to Rock’ and the ‘Filed under:’ ?
    https://www.horriblepain.com/quicks/lineups.html
    I’ve got a div-based version and a table version of the same post, and I’m not happy with either of them. The div-based version linearizes badly, while the table-based version is table-based. Meanwhile, neither one quite lines up the two lines.
    So, how should I do this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • redsoxnut

    (@redsoxnut)

    <table class=”post”>
    <tr>
    <td>Time to Rock</td>
    <td class=”meta”><div align=”right”>Filed under: Music</div></td>
    </tr>
    <tr>
    <td colspan=”2″ class=”meta” valign=”bottom”>by rrh @ 11:31 am</td>
    </tr>
    <tr>
    <td colspan=”2″ >The music. It is good for the rocking, yes. Lalulilelo. I need scissors. 61!
    Sed ut perspiciatis unde omnis iste natus error sit voluptatem accusantium doloremque laudantium, totam rem aperiam, eaque ipsa quae ab illo inventore veritatis et quasi architecto beatae vitae dicta sunt explicabo. Nemo enim ipsam voluptatem quia voluptas sit aspernatur aut odit aut fugit, sed quia consequuntur magni dolores eos qui ratione voluptatem sequi nesciunt. Neque porro quisquam est, qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit, sed quia non numquam eius modi tempora incidunt ut labore et dolore magnam aliquam quaerat voluptatem. Ut enim ad minima veniam, quis nostrum exercitationem ullam corporis suscipit laboriosam, nisi ut aliquid ex ea commodi consequatur? Quis autem vel eum iure reprehenderit qui in ea voluptate velit esse quam nihil molestiae consequatur, vel illum qui dolorem eum fugiat quo voluptas nulla pariatur?</td>
    </tr>
    </table>

    Thread Starter RobotHero

    (@robothero)

    I need to retain the <h4> tags. It loses structural markup without it.
    And I’m kind of hoping for an approach that doesn’t use tables.

    Thread Starter RobotHero

    (@robothero)

    I found a solution to my own problem.
    This is in the style:
    h4 {
    font-size:25px;
    text-align:left;
    margin: 0px 40% 0px 5%;
    }
    .meta {
    margin: -22px 2% 10px 60%;
    text-align:right;
    font-size:16px;
    }

    This is in the body:
    <h4 id="post-123">Time to Rock</h4>
    <div class="meta">Filed under: Music

    by rrh @ 11:31 am</div>
    It has a two pixel variation between browsers, but it’s consistent enough for my tastes, uses no tables, and linearizes correctly.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to line these up?’ is closed to new replies.