As seen on Google Code’s new and improved source browser.
“I hold that simplicity is the most important attribute of design,” I say. To which Tufte would reply, “No, you don’t.”
I didn’t know it was possible to build such nice closed-source programs.
“The MIT guy did not like this solution because it was not the right thing.”
Did I ever tell you about the guy that spent the better part of a day making his site’s layout entirely em based …
Are there restrictions on how local content can be modified (e.g. user stylesheets)? Should there be?
A Firefox hack for styling specific sites using user stylesheets.
New JavaScript based text justification library looks promising. The default HTML/CSS text justification built into every browser has always sucked, due mostly to lack of word hyphenation.
One of the places I’d really like to have good justification is in Ronn’s HTML based man pages. It uses text-align: justify currently, but I’ve been considering making it non-justified because it’s so horribly bad. Compare it to the proper justified / hyphenated text generated by groff when viewing manpages in a terminal. It’s night and day.
We should be doing more of this:
If you’re building a modern website then you’ll be needing some javascript libraries and css.
Rather than hosting these common libraries on your own server, you should Use a Content Delivery Network. Lucky for you Google, Microsoft and Yahoo host a range of popular javascript and css which you can directly link to for free. This saves your bandwidth and speeds up your website load time.
The great thing about the shared CDN approach is that the resources are cached once and reused across all sites, often without even making a validation request.
I’d seen the JavaScript libraries before but I’d never considered using this approach with CSS. The YUI CSS reset is a perfect example of where a shared CDN provides the most benefit. If every site that employed the basic CSS reset used this URL, it would effectively be baked into the browser with no overhead after the first request.
Oh neat. You can drop the type='text/javascript' from your <script> tags, type='text/css' from your <style> (and/or <link rel='stylesheet'>) tags and the browsers won’t care. Also, in 2010, <b> and <i> are cooler than <strong> and <em>, and trailing slashes on self closing tags are lame.
Personally, I like these little tricks for making HTML more human readable but I can’t believe people are actually doing stuff like this in an attempt to compress HTML to gain network/browser efficiencies. I dare someone to actually benchmark those optimizations. Cutting your sucky EULA page in half and trimming away all that shit in your header/sidebar would be much more productive (but still barely worthwhile).
Big giant list of articles, essays, tutorials, and tech talks on making the web faster. This is part of a larger Google Code project that asks, “what would be possible if browsing the web was as fast as turning the pages of a magazine?”
I’ve been staring at this screen for two sleepless weeks now. Really glad to have it wrapped. James Lindenbaum (CEO/founder/bad-ass) did most of the conceptual design work. seaofclouds did the fucking amazing illustrations and took the design to completion. Pedro Belo did the HTML/JavaScript and server side stuff. Definitely one of the best teams I’ve worked on.
Measure, Leading, Quotes, Rhythm, Widows, Emphasis, Scale, and Rags. Great piece.
Smashing Magazine shows off a massive catalog of minimalist designs and then attempts to deconstruct them.
Stefano Mazzocchi: “I have a much simpler and humble goal here: give programmers some tricks and some advice in how to proceed to make their web pages look cleaner, more readable and, hopefully, more professional, elegant and original than before.”
Using conditional comments to stick an “ie” classname on <body> so that you can target IE from a single CSS file instead of bringing in a separate stylesheet. Nice hack.
Bill Burcham applies the technique of making form controls inherit style from their container in the Air Budd Form Builder Rails plugin. Cool.
I’m using this on all of my “linkings” index pages now (see here, for example). It works pretty well. I really like the idea of integrating a piece of the destination site’s visual identity instead of using a generic del.icio.us/bookmark icon. Some site’s with favicons don’t work properly, however, and I’d give anything to have another parameter that let me override the default globe icon (this one: ). It’d be nice if I could say, grab the favicon for this domain but if it doesn’t exist, give me the favicon for delicious.com (
).
“You can specify CSS based on viewport orientation which you determine via javascript and update the orient attribute of the body element. Target the browser with body[orient=‘landscape’] or body[orient=‘portrait’]”
if any – Another hella-great minimalist design.
What Mark Pilgrim has been working on at Google for the past year or so: an encyclopedia of web development.
Brad Neuberg (Google Gears): “Our historical closeness to the web creates a kind of myopia, where we can’t see how amazing it is. It’s a billion Library of Alexandria’s dropped into our laps.”
“If you can’t control the text width the next best thing you can do to compensate for an overly wide text measure is to increase the leading.” — I never considered that but it makes sense.
Makes the background of hexadecimal color codes the respective color. So, background-color:#f00 will have a red background in the vim editing window. Nifty.
From the comments: “the only things i find [useful] in Web Developer Extension is the shortcut to clear cache… for other things i use Firebug…” — Me too!
Bert Bos and Håkon Wium Lie show off some of Prince’s more advanced CSS and HTML features, including styling page size, generating headers/footers, advanced use of the CSS content attribute, page numbering, cross-references, and table of contents.
Ahh, it turns out Håkon’s Wium Lie (Opera CTO and the guy who first proposed CSS) is on YesLogic’s board, makers of PrinceXML. I’m not sure how I missed that.
Holy crap, this is insane. Just let people run IE6 and IE7 as separate standalone browsers side-by-side with IE8. As James said in my previous post, they can even rebrand it as “Intranet Explorer” :)
“… anybody who’s ever built out a relatively complex design using ems will agree that at some point they wondered if the benefit was really worth the effort.”
This is a good idea. The w3c hosted validators tend to perform on the bad side of horrible. I’ve run the validator locally but never thought to look for mirrors.
Simple print typesetting using HTML/CSS. Targets the 80% of common print tasks w/ HTML/CSS. I’m going to be looking into mozilla’s cairo PDF output abilities within the next few weeks so it will be interesting to compare.
This trumps Leopard for most important Mac development this year as far as I’m concerned. Words cannot explain the hatred I’ve developed for booting up multiple Parallels VMs to get at IE.
“… CSS 3 is a joke. A sad, sick joke being perpetrated by people who clearly don’t build actual web apps…”
“But when I say HTML mail still sucks, I don’t mean it sucks because support for design in e-mail today is like support for standards in web browsers in 1998. I mean it sucks because nobody needs it. It impedes rather than aids communication.”
Yes! I’ve been doing this for a few months now with the corp. assets and I won’t go back. You can really see the text snap into a vertical rhythm when you hit it.
Another interesting take on multi-select lists that uses checkboxes with labels and colors.
I’m real close to hating multi-select list boxes right now. Using an overflowed UL of checkboxes has some interesting pros (and cons).
Very nice list of CSS techniques.
Handsome Flash based color mixing tool and color theme sharing site.
Holy… This is big. Huge big.
I’m sure I don’t know.
Big list of resources on CSS based forms.
The best attempt I’ve seen at splicing multiple API references together. This uses the external documentation but provides indexing and browsing features.
This site is really starting to come along now. The latest addition on how to manage vertical spacing in intervals is something I’ve been wondering about for a while now.
Firefox extension with some promising script debugging/spying features.
CSS specifity chart based on Sith power levels — to good to be true.
I run into these problems on a daily basis…
this site rocks
This is probably the nicest color picker for choosing compliments off of a base color.
Big list of sites that provide CC licensed CSS layouts and tools for generating layouts.
Information on quirks vs. strict mode for HTML/CSS rendering: how to trigger, what DOCTYPEs do what, etc.
Styled for landscape printing…
Some information on using proper q and blockquote elements in HTML and then styling them with CSS to fix all the browser brokeness.
red/green/yellow for specific css attribute support in major browsers.
a thorough look at how to use HTML tables correctly.
Some tips I haven’t seen before for dealing with IE’s broken CSS support. Using conditional comments for ie specific css, setting manual defaults, etc.
A nice breakdown of how float works in CSS, which isn’t always intuitive.
Various CSS layouts.
Floating images and other objects using CSS.
Methods for creating a 2-col layout using CSS.
..that rocks. Quite possible the only javascript treeview I’d ever consider using.
Silly amount of links to CSS resources of all shapes and sizes.
A bunch of nice bullet images best used to style UL tags using CSS.
More ridding of tables..
Looks like the periodic chart of the elements for CSS hacks.
The saga continues.
More hacks for trying to get IE to do the right thing.
“This site documents my attempts at understanding and exploring the possibilities of CSS.”
“So with this tutorial I hope to lay out the concept of the flow, and why understanding it will give you a greater grasp of CSS.”