i just created a navigation bar for testing purposes and there is something wrong with it, the buttons for the list aren’t exactly next to each other.
I want to achieve it just as on this site (sitepoint) on the upper right navigation (Podcast, Articles).
Thanks for your help.
If we’re talking about the navbar in your code, it is fixed to the bottom of the window and doesn’t handle narrow widths well. Where is the top menubar with the buttons on the right that aren’t spaced as you wish them to be? Sorry, but I don’t do “mixed messages” very well and I’m a little confused here.
Uhm yeah sorry about that. Basically I want the buttons to be right next to each other so that there is no gap between them. The position of the navbar itself doesn’t matter.
By saying I want it like on the site (sitepoint) I meant the non-existant gap between the Podcast and Articles button, not the position on the page.
Hope this clears things up, my english is not that good.
In this case it works the same with float and block removing white-spaces.
EDIT) @ronpat reminded me to clear the float in the #navigation-bar.
#navigation-bar {
overflow:hidden; /* clearing floats if this parent div is static (width can be auto) */
width: 100vw; /* to not collapse a width using vw or any length unit is needed if clearing by table-caption (the generated anonymous table parent has no width) */
display:table-caption;
width: 100%; /* width is optional if clearing by any options below but is needed for the list to float all right (no pun) */
display:table;
display:inline-table;
display:inline-block;
position:absolute;
position:fixed; /* as the OP choosed */
}