As George Stocker noted, tabs should appear in future CSS (FF4 should have this), but on average ...
The problem with the related blog post is that the tabs are not copied when copying / pasting from the browser. Alternatively, try the following:
<style> .tabspan{ display:inline:block; width:4ex; } </style> <pre> int main() { <span class=tabspan>\t</span>return 0; } </pre>
Where "\ t" in the above example is the actual tab character. Now it should copy and paste correctly. Not as nice as clicking a css property on a <pre> tag, but that's life.
(PS replied to this old post as high on google for 'css tab width', and I came up with this solution shortly afterwards.)
DaedalusFall Nov 05 '10 at 1:19
source share