Page 1 of 1

The Essential Quick Code Sheets

Posted: Mon Jun 29, 2009 9:28 pm
by Sindarin
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.

HTML Snippets » download

CSS Snippets » download

JQuery » download

Actionscript 2 » download

PHP » download

C++ » download

Suggestions are welcome :)

Re: The Essential HTML/CSS Code Sheets

Posted: Tue Jun 30, 2009 5:21 pm
by Jammerious
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 =)

Re: The Essential HTML/CSS Code Sheets

Posted: Fri Jul 03, 2009 3:08 am
by kaszu
In CSS you have links styled twice.
No styles for headings? What about line-height?

Some CSS I would add:

Code: Select all

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 */
}

Re: The Essential HTML/CSS Code Sheets

Posted: Fri Jul 03, 2009 3:19 am
by papa
I usually start out with http://www.blueprintcss.org/ and then edit it from there.

Re: The Essential Quick Code Sheets

Posted: Sun Nov 01, 2009 3:11 pm
by Sindarin
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++ :D