Here is my custom HTML code snippets:
</div><!-- /end .topbar -->
<ul class="nav">
<li class="first"><a href="#">Time added</a></li>
<li class="first"><a href="#">Price</a></li>
<li class="last"><a href="#">Discount</a></li>
<li class="delete"><a href="#"></a></li>
</ul><!-- /end .nav -->
<div class="done hidden">
<a href="#" class="button">done</a>
</div>
</div><!-- /end .mast -->
</div><!-- /end .inner -->
</div><!-- /end #page -->
Extract from my unique CSS:
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
font: inherit;
vertical-align: baseline;
}
/* Reset HTML5 display-role */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
}
body {
line-height: 1;
}
ol, ul {
list-style: none;
}
blockquote, q {
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
ul.nav{
height:45px;
background:#36d6be;
position:fixed;
top:0;
width:100%;
}
ul.nav li.first{
width:33.333333%;
float:left;
border-right:solid 2px #3cefd4;
height:45px;
}
ul.nav li.last{
width:26.04166666666667%;
float:left;
border-right:solid 2px #3cefd4;
height:45px;
}
ul.nav li.delete{
float:left;
width:56px;
height:45px;
}
You can view this code on http://jsfiddle.net/q3LGW/
I have 4 list items, the first two are of equal size, the third is calculated to be 33% - 56px for the last delete trash icon. However, I am facing difficulty in creating a fixed width for the last list item which is floated left.