My desired layout is shown below:
| link | link | link a,b,c search: |
The links are centered, while the 'a,b,c search' text is floated to the right.
I am attempting to achieve this using basic CSS and HTML.
This is what I currently have:
<header>
<nav><a href="aaa">fff</a> | <a href="aaa">fff</a> | <a href="aaa">fff</a></nav>
<ul><li>a</li><li>b</li><li>c</li><li>search: </li></ul>
</header>
I have applied text-align: center
to the header
.
The ul
has been styled with display:block; float: right
.
Although close, the 'ul' element appears on a line below...
One solution could be adding a negative margin-top to the ul
.
I am curious if there is a more efficient approach to achieve this layout.