I have done a lot of looking around and cant quite mine to work, i was hoping with my specific code people would be able to help. here is the html:
<body>
<!-- <h3> Website Title </h3> -->
<ul id="navigationBarList">
<li><a href="#About">About</a></li>
<li><a href="#Bookings">Bookings</a></li>
<li><a href="#Blog">Blog</a></li>
<li><a href="#Pricing">Pricing</a></li>
</ul>
<div id="element2"> Sign in </div>
</body>
and here is the css:
#navigationBarList{
display: inline-block;
margin: 0;
margin-right: 10px;
padding: 10px;
background-color: black;
font-size: 25px;
color: red;
width: 100%;
}
#navigationBarList li{
display: inline;
width: 100px;
margin-right: 20px;
}
#element2{
display: inline;
width: 100px;
background-color: red;
}
and simply i want the sign in link to be on the same line as the list items. (the reason i have not included it in the list is that i want the list to have equal space in between each element and then a wider gap with the sign in button shoved to the right of the screen but could not work it out so figured i should separate them)
so far this code is just shoving it underneath
` element as 100% width. How do you plan on fitting in the `Sign in` link?
– Phylogenesis Jan 06 '15 at 17:18