Make a table start on the same line as header

Posted by ripper234 on Stack Overflow See other posts from Stack Overflow or by ripper234
Published on 2010-05-01T11:20:37Z Indexed on 2010/05/01 11:27 UTC
Read the original article Hit count: 174

Filed under:
|
|

I am trying to get a table of icons appear on the same line as the header.

In the HTML below, the icons appear on a separate line.

I tried using 'top' attribute to move the table, but this is not a good solution because then there's an ugly space between the icons table and the rest of the document. How can I fix this?

<html>
<head>
<style type="text/css">
#action-icons
{
    float:right;
    position:relative;
    border:0;
}
</style>
</head>
<body>
    <h1 class="edit">Bla bla</h1>

    <table id="action-icons">
        <tbody>
            <tr>
                <td><img width="64" height="64"/></td>
                <td><img width="60" height="60"/></td>
            </tr>
            <tr>
                <td><img width="36" height="36"/></td>
                <td><img width="36" height="36"/></td>
            </tr>
        </tbody>
    </table>

    <table width="100%" class="tasksgrid">
        <tbody>
            <tr>
                <th class='taskcell'>One</th>
                <th class='taskcell'>Two</th>
            </tr>
        </tbody>
    </table>
</body>
</html>

© Stack Overflow or respective owner

Related posts about html

Related posts about css