Entries tagged as: javascript

2010
11-16

Canvas – no more Flash

We all know Flash and Java. If you write webpage with it and if your users install it, then they can watch animation elements on your web page. But today I was playing with something new called "Canvas". (more…)
2010
10-10

too big jquery-ui elements

Yesterday I was installing jquery-ui at one of my websites. When I do that as it was writen in instruction all jquery-ui elements was 2 times bigger. I search a while and find how it was solved in demos at jquery.com. That CSS code:
  1. body{ font: 62.5% "Trebuchet MS", sans-serif;}
  2. .demoHeaders { margin-top: 2em; }
  3. #dialog_link {padding: .4em 1em .4em 20px;text-decoration: none;position: relative;}
  4. #dialog_link span.ui-icon {margin: 0 5px 0 0;position: absolute;left: .2em;top: 50%;margin-top: -8px;}
  5. ul#icons {margin: 0; padding: 0;}
  6. ul#icons li {margin: 2px; position: relative; padding: 4px 0; cursor: pointer; float: left; list-style: none;}
  7. ul#icons span.ui-icon {float: left; margin: 0 4px;}
Unfortunatly that solution change (destroy) all layout of website. So here is step by step instuction how to do it correct. (more…)