Skip to content

Latest commit

 

History

History
3 lines (2 loc) · 451 Bytes

File metadata and controls

3 lines (2 loc) · 451 Bytes

View-Source-Button (Article / Demo)

The idea that first came to mind was to use CSS3's :target pseudo class. We talked about these a while back while exporting CSS3 tabs. The idea is to have a link that links to the #source-code hash tag. That puts #source-code at the end of the URL, and allows the :target selector to match and apply styling.