html - CSS: Sidebar with folded header ribbon -


now i've see various ways accomplish effect:

alt text

i used accomplish table, i've since decided not use tables that. what's best way this? keeping in mind there's right border...

<style> .left{  float:left; } .ribbontitle{  background:transparent url(/images/solid.png) repeat-x;  height:20px;  width:auto; } .ribbonend{  background:transparent url(/images/end.png) no-repeat;  height:20px;  width:10px; } .clear{  clear:both; } </style> <div class='left ribbontitle'>title</div> <div class='left ribbonend'>&nbsp;</div> <br class='clear'/> 

take 2 elements, float them left abutted each other. set repeating background of ribbon without end in div 1. set non-repeating background of ribbon "end" in other div


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -