I can usually figure stuff out eventually but this had me stumped. It`s all very quick and easy when you know how!
Your simple solution of putting both links in the same list item half works, only way to space them is with multiple and if each link isn`t in it`s own li then I might aswell remove the list altogether and use divs instead. Luckily setting the width for each link worked so I can stay with the more semantic list.
The final result then:
functions.php
// Index and Userlist should always be displayed
$links[] = '<li class="navextra1"><a href="index.php">Link 1</a>';
$links[] = '<li class="navextra2"><a href="index.php">Link 2</a>';
$links[] = '<li class="navextra3"><a href="index.php">Link 3</a>';
$links[] = '<li id="navindex"><a href="index.php">'.$lang_common['Index'].'</a>';
$links[] = '<li id="navuserlist"><a href="userlist.php">'.$lang_common['User list'].'</a>';
CSS
.navextra1 {
float: right;
width: 24px;
white-space: nowrap;
}
.navextra2 {
float: right;
width: 74px;
}
.navextra3 {
float: right;
width: 124px;
}
The width and white-space attributes on the first link are only necessary to control the space between the link and edge of the board.
Thanks to everyone who helped and I did say I`d paypal some cash for a solution, so how much do I owe who?