If I understand you correctly, you just want the last 2 <li> all right and the rest to stay all the way to the left. To style the last 2 <li> elements to "float:right"
replace this HTML with existing HTML:
<body> <div class="container"> <ul class="nav nav-tabs" role="tablist"> <li role="presentation" class="active"><a href="#">Database</a></li> <li role="presentation"><a href="#">Tasks</a></li> <li role="presentation" style="float:right;"><a href="#">Options</a></li> <li role="presentation" style="float:right;line-height:45px;">Welcome, ${sessionScope.currentUser}<button type="submit" >Log out</button></li> </ul> </div> </body>`
UPDATED CODE. There are many ways to vertically align text, you can use vertical-align , line-height , padding and margin . I adjusted line-height to set the text in the middle
source share