Profile
Achievement
PeteW's Recent Snippets
- All /
« Prev 1 Next »
Displays HTML list as a gramatically correct English sentence. \r\n\r\nFor example\r\n\r\n<ul class=\"commaList\">\r\n <li>one</li>\r\n <li>two</li>\r\n <li>three</li>\r\n <li>four</li>\r\n</ul...
1
729
posted 14 years ago by PeteW
Summarised snippet of Natbat's article: http://natbat.net/2009/Jun/10/styling-buttons-as-links/
Any link that that initiates an action, rather than just changing a page should semantically be a form with a submit button not a l ink. However you ca...
3
1287
posted 15 years ago by PeteW
Nice clean, and semantically correct breadcrumb XHTML accompanied by the CSS.
Create a transparent GIF of the symbol '>' and save it in /img/gt.gif. This will be used for older browsers that don't support the :after pseudo element.
4
900
posted 15 years ago by PeteW
A simple replacement for print_r or whatever you use to display debug info.
2
856
posted 15 years ago by PeteW