I’ve been working on my PHP tests system on my MemberNet site.
As you can see if you check out one of the tests, for example the phpinfo test, there is now a submenu that has links for the HTML source, the PHP source, the W3C HTML validator and the W3C CSS validator.
Was experimenting with the HTML <select> multiple Attribute today.
Found myself using the PHP function str_pad today to format a hex string as a six digit HTML/CSS colour code.
$code = str_pad( dechex( $rgb ), 6, '0', STR_PAD_LEFT );
Found a few handy web pages that help pick HTML/CSS colours. Hex Hub and Hexadecimal Color Codes.
Today I learned how to make a HTML element’s width equal to its contents.
Basically you use CSS and set the element’s “display” property to “inline-block”.