I want to keep my login and sign up to the right of my webpage. I've tried using `float` unsuccessfully: how do I implement this?

Here is the html page:

```html
<link href="navigation.css" rel="stylesheet" type="text/css" />
<nav style="position:relative; top:1.5em;">
    <ul>
        <li>
            <a href="#.php">Home</a>
        </li>
    </ul>
    <ul>
        <li>
            <a href=".php">form</a>
        </li>
    </ul>
    <ul>
        <li>
            <a href=".php">Profile</a>
        </li>
    </ul>
    <ul style="">
        <li>
            <a href="login.php">login</a>
        </li>
    </ul>
    <ul>
        <li>
            <a href="new.php">Sign up</a>
        </li>
    </ul>
</nav>

```

I want to use inline css to float or put my login and sign up to the right without changing my nav alignment.