html - CSS: Sidebar with folded header ribbon -
now i've see various ways accomplish effect:
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'> </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
Post a Comment