Jump to content

center text with css logout link set to far right of table


jasonc

Recommended Posts

how do i place the logout link to the far right of a table?

 

<style type="text/css">
.logoutright {
position: relative;

}
</style>
<table width="100%">
      <tr>
            <td width="100%" valign="top">
            <div class="center">
            Welcome to the Members section
            </div>
            <div class="logoutright">
            <a href="logout.php" class="logoutright">Logout</a>
            </div>
            </td>
      </tr>
</table>

 

at present it shows like this...

Welcome to the Members section

Logout

 

but i would like it to show like this

 

                              Welcome to the Members section                  Logout

 

 

 

the welcome part completely centered and then the logout link added to the far right

 

i have tried to use dreamweavers edit css feature but can not figure it out at all

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.