Skip to content

Instantly share code, notes, and snippets.

@benblustey
Created February 5, 2012 20:11
Show Gist options
  • Save benblustey/1747743 to your computer and use it in GitHub Desktop.
Save benblustey/1747743 to your computer and use it in GitHub Desktop.
Untitled
*{font: 12px sans-serif;list-style:none;margin:0;padding:0;}
#rfpAttachments > div {
border: 1px solid #CCC;
padding-top: 8px;
height: 68px;
overflow: hidden;
overflow-x: hidden;
overflow-y: scroll;
position: relative;
}
#rfpAttachments span.fileType {
width: 150px;
white-space: nowrap;
word-wrap: normal;
overflow: hidden;
display: inline-block;
zoom: 1;
text-overflow: ellipsis;
}
li {padding: 0 0 5px 0;}
ul {margin: 0 0 0 4px;position:relative;}
span.fileType {
padding-left:26px;
width: 200px;
white-space: nowrap;
word-wrap: normal;
overflow: hidden;
display: block;
text-overflow: ellipsis;
}
.fileType {background:url('http://www.emcsg.com/notion/share/images/icons/pdf.png')no-repeat;}
#primaryRFP {
display:block;
position:absolute;
width:16px;
height:16px;
background-color:#CCC;
left:-2px;
top:-2px;
background-color:red;
}
#rfpAttachments {
width:220px;
postion: absolute;
right:0;
top:0;
}
<div id="rfpAttachments">
<div>
<ul>
<li>
<span class="fileType pdf">
<span></span>
RFP_webdesign_V10.pdfRFP_webdesign_V10.pdf
</span>
<span id="primaryRFP"></span>
</li>
<li><span class="fileType doc"><span></span>Admin_ScreenShots.doc</span></li>
<li><span class="fileType doc"><span></span>Admin2_ScreenShots.doc</span></li>
<li><span class="fileType doc"><span></span>Admin2_ScreenShots.doc</span></li>
</ul>
</div>
</div>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment