-
Recent Posts
Recent Comments
Archives
Categories
Meta
Posted in Design
Leave a comment
Props to My CSS3 Cross-Browser Gradient Achievement
CSS Geeks and our never ending desire to eschew using graphics at all cost if it can be done with CSS.
Gradients are the rage ( Well CSS3 is as well as Progressive Enhancement ) This post is basically about getting gradients to work cross browser ( yes IE6 +), but let as usual I had major help here are a couple of online tools which are amazing, Ultimate CSS Gradient Generator and CSS3 Generator .
All moderns browsers have no problem with this. As usual it’s IE that the problem. After some mildly painstaking research I finally got it to work with the CSS below:
{
background: rgb(255,255,255); /* Old browsers */
background: -moz-linear-gradient(top, rgba(255,255,255,1) 0%, rgba(237,237,237,1) 95%, rgba(243,243,243,1) 100%, rgba(255,255,255,1) 100%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(255,255,255,1)), color-stop(95%,rgba(237,237,237,1)), color-stop(100%,rgba(243,243,243,1)), color-stop(100%,rgba(255,255,255,1))); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(237,237,237,1) 95%,rgba(243,243,243,1) 100%,rgba(255,255,255,1) 100%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, rgba(255,255,255,1) 0%,rgba(237,237,237,1) 95%,rgba(243,243,243,1) 100%,rgba(255,255,255,1) 100%); /* Opera11.10+ */
background: linear-gradient(top, rgba(255,255,255,1) 0%,rgba(237,237,237,1) 95%,rgba(243,243,243,1) 100%,rgba(255,255,255,1) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ffffff', endColorstr='#e5e5e5'); /* IE6 & IE7 */
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(GradientType=0,startColorstr='#ffffff', endColorstr='#e5e5e5')"; /* IE8 */
border-bottom: 1px solid #ccc;
border-top: 1px solid #e5e5e5;
zoom:1;
}
The “zoom: 1″ makes this work is IE – IE needs and it’s has layout issue.
anyway the results are ok – IE is limited to only linear gradients however, that was all I needed so I was safe.
Posted in CSS3
Leave a comment
Interesting news from the “Font Front” — REM sizing
The problem with em-based font sizing is that the font size compounds. A list within a list isn’t 14px, it’s 20px. Go another level deeper and it’s 27px! These issues can be worked around by declaring any child elements to use 1em, avoiding the compounding effect.
But rem takes away this problem altogether – - support a little low – not that bad – and there is a backup
Posted in Fonts
Leave a comment
The Most Important CSS3 Properties Explained
The Most Important CSS3 Properties Explained
Great review to get going with CSS3 – and don’t forget Progressive enhancement
Posted in CSS3
Leave a comment
Improving your CSS performance
Improving your CSS performance
Some simple things to remember when creating your CSS. Finding reliable compression however is always a challenge.
Posted in CSS
Leave a comment
Chrome – WebKit Issues
Just started finally having to deal with issues with Chrome, or maybe more accurately the WebKit Rendering engine (Chrome, Safari).
Here’s a couple – both very obscure.
Seems you can have issues with the vertical-align property to remedy apply “display: inline-block. This page talks a little about it:
http://reference.sitepoint.com/css/vertical-align
Also – webkit-browsers-pushing-a-bullet-to-the-right. This one is a real strange bug to be remedied by applying “clear: both” to the ul tag ( or ol ) – Placing floats with lists can be dangerous
The panacea browser will never exist
Posted in Browsers
Leave a comment
The 30 CSS Selectors you Must Memorize
The 30 CSS Selectors you Must Memorize
Keep you CSS skill sharp with some of the more interesting and useful selectors that will prove to be more available soon
Great List
Might as well put this link here too:
10-css3-properties-you-need-to-be-familiar-with
Nettuts Rocks!
Posted in CSS
Leave a comment