I am Sam, I like talking about, Music,Web Development,and I comment on my twitter page too.

If you would like to read this more often then you can. You can view my online profile too if you like?

Blog

2009 2010 album art album of the month albums beats best album biffy clyro books in coda coda december 09 delphic dreamweaver drum n bass editors fallback fopp ftp Hadouken! html5 hypem internet explorer january jquery last.fm linux monday music Music new music new tune november opera php rave remix Royal Bangs silverlight svn TEA the xx Vampire Weekend vitalic windows Yeasayer ZEN CODE

Posts Tagged ‘html5’

CSS3 – Drop Shadows – single side

css3

Bit more playing around with CSS3.

I was trying to get an effect with a single shadow down one side of a box, using the BOX-SHADOW in CSS.  The “standard” deployment gave some results I was not too happy with. This was because the Shadow were spilling out over edges that I didn’t want it to be displayed on. See the image below.

poor shadow effect

As you can see the shadow is spilling over the top an bottom edge

I wanted the Left Side edge to ONLY have shadow on it….so after about 10 mins of clicking…..

After a bit of tinkering this is the result!

After a bit of tinkering this is the result!

The CSS code is a follows :
box-shadow: 0px -5px 0px #fff, 0px 5px 0px #fff, 5px 0px 0px #fff, -2px 0px 5px #333;
-o-box-shadow: 0px -5px 0px #fff, 0px 5px 0px #fff, 5px 0px 0px #fff, -2px 0px 5px #333;
-icab-box-shadow: 0px -5px 0px #fff, 0px 5px 0px #fff, 5px 0px 0px #fff, -2px 0px 5px #333;
-khtml-box-shadow: 0px -5px 0px #fff, 0px 5px 0px #fff, 5px 0px 0px #fff, -2px 0px 5px #333;
-moz-box-shadow: 0px -5px 0px #fff, 0px 5px 0px #fff, 5px 0px 0px #fff, -2px 0px 5px #333;
-webkit-box-shadow: 0px -5px 0px #fff, 0px 5px 0px #fff, 5px 0px 0px #fff, -2px 0px 5px #333;

The way that this code is working is the first three shadows are full opacity in White (#fff) – which matches the BG of the box, and the last shadow applies the #333 shadow to the left hand edge. Yes it does increase the edge by 5px, but thats how I wanted the effect to look…

Internet Explorer and HTML5

Microsoft wants people to use its Silverlight plug-in, so Internet Explorer isn’t supporting native video playback in the browser at all.

To me an absolute horrific comment, Internet Explorer is holding back the development on the World Wide Web again.
Lets just remind ourselves that Silverlight Can ONLY be developed under windows, and is not supported on Linux or the web browser Opera…..

What a Shambles.

Lets just show Silverlight is not supported, compared to Adobe Flash….

OS Support Statistics: shows the percentage of computers that do NOT support RIA’s (not detected, reasons for non-detection is because JavaScript is disabled).

OS/RIA Flash Silverlight
ALL 2.36% 57.07%
Mac OSX 11.56% 74.64%
Windows XP 1.46% 61.86%
Linux 3.78% 95.21%
iPhone 98.67% 99.52%

Lower % is better - Stats from riastats.com

Read the Full Article

Sam George