kingkool68 - tagged with css http://www.kingkool68.com/feed en-us http://blogs.law.harvard.edu/tech/rss Sweetcron kingkool68@gmail.com Soleil Noir 2012 | We believe in... http://www.kingkool68.com/items/view/34231/soleil-noir-2012-we-believe-in

A neat experiment with animated gifs, scrolling, and a vertical parallax effect.

]]>
Tue, 31 Jan 2012 08:06:00 -0800 http://www.kingkool68.com/items/view/34231/soleil-noir-2012-we-believe-in
HTML5 Please http://www.kingkool68.com/items/view/33571/html5-please

What THML5 features can I start using now?

]]>
Mon, 23 Jan 2012 07:01:00 -0800 http://www.kingkool68.com/items/view/33571/html5-please
Unmatched Style’s CSS Off Was Slimey Fun http://www.kingkool68.com/items/view/29704/unmatched-styles-css-off-was-slimey-fun

UnmatchedStyle.com hosted a CSS competition for front-end devs to strut their stuff among their peers. Everyone got the same design and it was up the entrant to come up with the most efficient, pixel-perfect, bleeding-edge, fully functioning interpretation. The deceptively simple looking design was lovingly crafted by the rowdy folks of Paravel and sent out two weeks ago. Entries were due at 5pm today. Here’s the low down on my submission. First, you should probably play around with my finished design and compare it with the static mockup (linked above). Go check it out… I’ll wait. Did you drag the corner of the browser to check how it responds to different browser sizes? Of course you did you CSS nerd.

 Somehow I messed up the colors of the design. My layout has really bright colors while the original design uses more muted colors. I have no idea how this happened. The logo is a background image attached to the element of the section. I was inspired by html5forwebdesigners.com. I forgot to add the blue faded slime splat in the header. I kind of screwed myself by using the <head> and <header> elements in the same section though I could have attached it to the <HTML> element. Oh well. Instead of PNGs I used GIFs in some places due to the smaller file size (thanks to increasing the Lossy section in Photoshop’s Save For Web dialog) Navigation links are at the bottom of the page with position:fixed (sticks to the top of the viewport) set for larger screens and an anchor link to the bottom of the page for smaller screens. The obstacles section is built with two sprites using the same background-position offsets. I wanted to just use one sprite for the larger images and use background-size to scale them down for the thumbnails. Performance took a big hit so I simplified. The larger obstacle images are within a element with overflow:hidden applied. The thumbnails link to the IDs of the larger version so no JavaScript is required to show/hide them.

The labels for the prizes that appear on hover are pulled from the title attribute of the link dynamically using CSS. The form uses required and pattern attributes for validation without any JavaScript. If I had more time I would add a validation script as a fallback. When the countdown reaches zero I “slime” the user using a number of slime splat images already loaded in the design. The two addresses to the studios are marked up with a vCard microformat so machines can easily parse that information. I did not use the <address> element for the studio addresses because that is not what it is for. The custom <select> drop down styles are images with the invisible <select>’s laid overtop. They’re not useable for sighted keyboard users. This is probably my least favorite part of my design. I focused much of my time on making the design accessible and didn’t even bother checking what it looks like in browsers outside of Firefox 7, Chrome 15, and Safari 5 (all Mac versions). I just didn’t have enough time. This layout is sluggish on my Nexus One most likely due to the way I added the semi-transparent grainy texture. I added some ASCII art as an HTML comment at the bottom of the page. I like adding little easter eggs like that. Finding the right element to make a favicon image from was tricky. I settled on the KN from the Knucklelodeon logo because it looked the best at 16×16. You can pin the site to your desktop if you’re using IE9 and Windows 7 since I added a fewelements. Of course I forgot to add the more basic description, keyword and other general elements. Selecting text uses the same colors as the hove styles, yellow background with reddish-orange text and no text shadow. My custom JavaScript code is in a single block at the bottom of the page and not in a separate file. Since it is a single-page site, there is no benefit to externally linking it.

This was also my first responsive design. I started out making the large 1024px version first and then going back to make smaller versions. Big mistake. It’s a lot easier to start with mobile first and then build your design up, larger and larger. Media queries are also a pain in the butt since it requires a ton of going back and forth from the top of the stylesheet to the bottom where the media query styles were. When I changed styles for one target size, I had to double-check that those changes didn’t (or did) cascade into the larger sizes. This also resulted in a lot of duplicate selectors. What would be ideal is to set-up different classes on the HTML element with a class for different resolutions. This would be similar to how we handle conditional styles for Internet Explorer. This way we could group similar styles in the same area which makes it easier to keep track of changes. Sites I Referenced

Custom styling of select boxes Handy CSS Sprite Generator Converting kerning to letter-spacing background-sizing CSS property Support background properties among browsers HTML5 Placeholder Using pseudo elements to add texture HTML5 Boiler Plate Responsive Design Testing HTML5 Form Validation HTML5 Patterns for Validation CSS3 Content from Attributes HTML5 For Web Designers The <address> element Everything You Wanted To Know About Touch Icons Photo2Text.com for Generating ASCII Art

Other Noteworthy Entries So what do people do once the contest comes to an end? Share their work on Twitter for others to comment on of course!  Here are some of the other entries I found searching Twitter for #cssoff.

The Triple Dare logo follows your mouse @timhetter Slick color picker for Select Team Color @spacedawwwg Creative way for showing the Obstacles section at different browser resolutions @mbmufffin Vertical parallax effect that breaks on my 27 inch iMac @brandonewoldt Interesting Signup Form Animation @leonuh Awesome sliming at the end of the countdown @loganfranken Lots of different animations @strTRK

Finally if you want to show off your entry, @daljo628 is hosting them at http://knucklelodeon.com/ Ping him to have yours added. Phew! I’m glad I’m not in the judge’s shoes now. Having to go through all the entries and ultimately pick a winner; That’s a tough call. Unmatched Style’s CSS Off Was Slimey Fun by Russell Heimlich

]]>
Fri, 04 Nov 2011 10:47:00 -0700 http://www.kingkool68.com/items/view/29704/unmatched-styles-css-off-was-slimey-fun
Apple OS X Lion Buttons in CSS | Improve your UI | Pixify http://www.kingkool68.com/items/view/24482/apple-os-x-lion-buttons-in-css-improve-your-ui-pixify

Examples of Lion styled icons done with CSS.

]]>
Thu, 21 Jul 2011 11:28:00 -0700 http://www.kingkool68.com/items/view/24482/apple-os-x-lion-buttons-in-css-improve-your-ui-pixify
Trigger CSS3 Animations with jQuery « Thomas Reynolds http://www.kingkool68.com/items/view/21529/trigger-css3-animations-with-jquery-thomas-reynolds

Use CSS3 Animations with jQuery for better performance especially in mobile apps.

]]>
Mon, 09 May 2011 06:17:00 -0700 http://www.kingkool68.com/items/view/21529/trigger-css3-animations-with-jquery-thomas-reynolds
HTML5 Reset :: A simple set of templates for any project http://www.kingkool68.com/items/view/20508/html5-reset-a-simple-set-of-templates-for-any-project

Handy snippits of HTML5 goodness

]]>
Tue, 19 Apr 2011 13:24:00 -0700 http://www.kingkool68.com/items/view/20508/html5-reset-a-simple-set-of-templates-for-any-project
Safe CSS Defaults | Nimbupani Designs http://www.kingkool68.com/items/view/20458/safe-css-defaults-nimbupani-designs

CSS default values

]]>
Thu, 14 Apr 2011 10:15:00 -0700 http://www.kingkool68.com/items/view/20458/safe-css-defaults-nimbupani-designs
The Cicada Principle and Why It Matters to Web Designers » HTML & CSS, Layout » Design Festival http://www.kingkool68.com/items/view/20052/the-cicada-principle-and-why-it-matters-to-web-designers-html-amp-css-layout-design-festival

Using prime numbers to generate seamless tiled backgrounds

]]>
Thu, 07 Apr 2011 08:55:00 -0700 http://www.kingkool68.com/items/view/20052/the-cicada-principle-and-why-it-matters-to-web-designers-html-amp-css-layout-design-festival
How a Simple Layout Can Be Mixed ‘n’ Matched with Patterns, Photos and Backgrounds | Psdtuts+ http://www.kingkool68.com/items/view/19824/how-a-simple-layout-can-be-mixed-n-matched-with-patterns-photos-and-backgrounds-psdtuts ]]> Sat, 02 Apr 2011 08:24:00 -0700 http://www.kingkool68.com/items/view/19824/how-a-simple-layout-can-be-mixed-n-matched-with-patterns-photos-and-backgrounds-psdtuts The New Bulletproof @Font-Face Syntax | Fontspring http://www.kingkool68.com/items/view/16127/the-new-bulletproof-font-face-syntax-fontspring

The Fontspring font stack hack for displaying custom fonts on websites in a cross-browser compatible way.

]]>
Fri, 04 Feb 2011 07:19:00 -0800 http://www.kingkool68.com/items/view/16127/the-new-bulletproof-font-face-syntax-fontspring
24 ways: Life Beyond Media Queries http://www.kingkool68.com/items/view/13266/24-ways-life-beyond-media-queries

Tricks for enhancing a mobile version of a site tailored to iOS devices.

]]>
Thu, 16 Dec 2010 20:35:00 -0800 http://www.kingkool68.com/items/view/13266/24-ways-life-beyond-media-queries
Arnau March http://www.kingkool68.com/items/view/12794/arnau-march

Photoshop Script for sprite images in CSS.

]]>
Wed, 08 Dec 2010 13:37:00 -0800 http://www.kingkool68.com/items/view/12794/arnau-march
SonSpring | Formalize CSS http://www.kingkool68.com/items/view/9896/sonspring-formalize-css

Framework for displaying forms consistently across browsers and platforms.

]]>
Tue, 19 Oct 2010 07:31:00 -0700 http://www.kingkool68.com/items/view/9896/sonspring-formalize-css
Ultimate CSS Gradient Generator - ColorZilla.com http://www.kingkool68.com/items/view/9851/ultimate-css-gradient-generator-colorzillacom

Easy way to generate cross-browser CSS3 gradients.

]]>
Mon, 18 Oct 2010 06:58:00 -0700 http://www.kingkool68.com/items/view/9851/ultimate-css-gradient-generator-colorzillacom
Make a ‘View Source’ Button | CSS-Tricks http://www.kingkool68.com/items/view/9514/make-a-view-source-button-css-tricks

Uses the google-code-prettify project and Jquery to make a button for viewing the source on the current page.

]]>
Sun, 10 Oct 2010 13:32:00 -0700 http://www.kingkool68.com/items/view/9514/make-a-view-source-button-css-tricks
WebAIM: "Skip Navigation" Links http://www.kingkool68.com/items/view/8642/webaim-quotskip-navigationquot-links ]]> Sun, 26 Sep 2010 17:45:00 -0700 http://www.kingkool68.com/items/view/8642/webaim-quotskip-navigationquot-links The 5-Minute CSS Mobile Makeover • Perishable Press http://www.kingkool68.com/items/view/8340/the-5-minute-css-mobile-makeover-perishable-press

A quick guide for a bare bones, handheld stylesheet. Works well on Blackberry browsers.

]]>
Fri, 10 Sep 2010 06:50:00 -0700 http://www.kingkool68.com/items/view/8340/the-5-minute-css-mobile-makeover-perishable-press
BonBon Buttons - Sweet CSS3 buttons http://www.kingkool68.com/items/view/7830/bonbon-buttons-sweet-css3-buttons

Sweet icon buttons that make life grande!

]]>
Thu, 02 Sep 2010 10:10:00 -0700 http://www.kingkool68.com/items/view/7830/bonbon-buttons-sweet-css3-buttons
Google: HTML, CSS, and Javascript from the Ground Up - Google Code University - Google Code http://www.kingkool68.com/items/view/7826/google-html-css-and-javascript-from-the-ground-up-google-code-university-google-code

Excellent video series teaching the fundamentals of web design and development

]]>
Thu, 02 Sep 2010 09:53:00 -0700 http://www.kingkool68.com/items/view/7826/google-html-css-and-javascript-from-the-ground-up-google-code-university-google-code
Revised Font Stack | A Way Back http://www.kingkool68.com/items/view/6579/revised-font-stack-a-way-back

Better web-safe font stacks.

]]>
Fri, 13 Aug 2010 19:54:00 -0700 http://www.kingkool68.com/items/view/6579/revised-font-stack-a-way-back