Coding Critique is the place to post source code for peer review by other members of DevNetwork. Any kind of code can be posted. Code posted does not have to be limited to PHP. All members are invited to contribute constructive criticism with the goal of improving the code. Posted code should include some background information about it and what areas you specifically would like help with.
Popular code excerpts may be moved to "Code Snippets" by the moderators.
I took my time to write these files over time and I keep adding to them as I learn more code. The HTML and CSS snippets contain totally valid code.
They provide a useful reference to each language's useful (IMO) functions. They might come in handy for you as well.
Hello there,
this will come in handy, and I found out that there are still html tags I have not yet met, like the fieldset and definition list, so thank you mucho grande =)
table {
border-collapse: collapse;
}
input, select, textarea {
/* Set box sizing for all except IE6 and 7. All inputs will be exactly 300px in all other browsers except IE6 and 7 where it will be 300+ */
width: 300px;
box-sizing: border;
-moz-box-sizing: border;
-webkit-box-sizing: border;
-ms-box-sizing: border-box; /* this works only for IE8 */
}
textarea {
font: 12px Verdana, Arial, Helvetica, sans-serif; /* default font looks weird IMO */
}
Added download links instead of posting code here and now supporting more standards for HTML!
Also added snippets for JQuery, Actionscript 2, PHP and C++