DANNY CHANG NEW YORK
Posts tagged tricks
Clearing floats
Nov 4th
A common problem with float-based layouts is that the floats’ container doesn’t want to stretch up to accomodate the floats.
Solution: overflow: hidden;
check out the original article at
CSS font size chart ( by px => percent )
Nov 4th
This is very useful and provided by YUI (Yahoo! UI Library).
I didn’t have any good impression toward to Yahoo! before.
But i am very glad they could share their UI database to open source.
Check out the original documents from here
http://developer.yahoo.com/yui
If you want this size in pixels (px) Declare this percent (%) More >CSS Hacks (for IE 7, IE 6, Opera, etc)
Nov 2nd
The following CSS selectors are considered workarounds and hacks for specific web browsers.
IE 6 and below * html {} IE 7 and below *:first-child+html {} * html {} IE 7 only *:first-child+html {} IE 7 and modern browsers only html>body {} Modern browsers only (not IE 7) html>/**/body {} Recent Opera versions 9 and below html:first-child More >
10 CSS tricks you may not know
Nov 1st
IE bugs? Fix them with CSS and Javascript
Oct 19th
Using CSS to Fix Anything: 20+ Common Bugs and Fixes http://www.noupe.com/css/using-css-to-fix-anything-20-common-bugs-and-fixes.html
Using Javascript to Fix 12 Common Browser Headaches http://www.noupe.com/css/using-javascript-to-fix-12-common-browser-headaches.html
IE Double Margin Float Bug Solution: display: inline; http://www.cssnewbie.com/double-margin-float-bug/