-ms-filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)"; filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)";
or all other filter
filter: -; /* or */ filter: none;
-ms-filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)"; filter: "progid:DXImageTransform.Microsoft.gradient(enabled=false)";
or all other filter
filter: -; /* or */ filter: none;
I’ve a problem with some wp plugin that force one of my client site alway run as “ISO-885901″ instead of “utf8″.
I also tried to remove the header and replace to exact command.
<!-- removed -->
<meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
<!-- added -->
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
but the result show the same:
Finally, I fixed this issue by use .htaccess to force the document run as utf8
<!-- add to .htaccess file --> AddDefaultCharset utf-8 AddCharset utf-8 .css .js
Although, the result of code still show as “ISO-885901″ but it can fix the strange character such as

Simple HTML
<div id="totop">
<a href="#totop" class="totop">Go to Top</a>
</div>
Add this css
#totop {position: absolute;top:-98px; right:0;}
#totop a { display:block; width: 60px; height:32px;overflow: hidden; text-indent: -9999px; background: url(img/totop.jpg) 0 12px no-repeat;-webkit-transition: .5s all; -moz-transition: .5s all; transition: .5s all; }
#totop a:hover {background-position: 0 0;}
Jquery code
$('a.totop').click( function() {
$("html, body").animate({ scrollTop: '0px' });
});
CSS3 for make text anti-aliasing such as “crisp, sharp” same as photoshop.
body, table, form {
font: 12px/18px "Lucida Grande", "Lucida Sans Unicode", Helvetica, Arial, Verdana, sans-serif;
background-color: transparent;
color: #333;
-webkit-font-smoothing: antialiased;}
div {
width: 70px;
-webkit-transition: .5s all;
-webkit-transition-delay: 5s;
-moz-transition: .5s all;
-moz-transition-delay: 5s;
-ms-transition: .5s all;
-ms-transition-delay: 5s;
-o-transition: .5s all;
-o-transition-delay: 5s;
transition: .5s all;
transition-delay: 5s;
}
div:hover {
width:130px;
-webkit-transition-delay: 0s;
-moz-transition-delay: 0s;
-ms-transition-delay: 0s;
-o-transition-delay: 0s;
-transition-delay: 0s;
}
<html>
<body>
<script>
$(document).ready(function(){
// YouTube Player API adapter
$.getScript('http://www.youtube.com/player_api');
loadYouTubePlayer = function(playerID) {
the_player = new YT.Player(playerID, {
events: { 'onReady': playYouTubeVideo }
});
};
unloadYouTubePlayer = function(playerID) {
// This is the part that's broken
$(playerID).stopVideo();
};
function playYouTubeVideo(event) {
event.target.playVideo();
}
$('.show_player').click(function() {
var idType = 'data-video-id';
var id = $(this).attr(idType);
$(this).fadeOut('fast', function() {
$('.hidden_player['+idType+'='+id+']').fadeIn('fast', function() {
loadYouTubePlayer('the_player'+id);
$('.stop_player['+idType+'='+id+']').fadeIn('fast');
});
});
});
$('.stop_player').click(function() {
var idType = 'data-video-id';
var id = $(this).attr(idType);
$(this).fadeOut('fast', function() {
$('.hidden_player['+idType+'='+id+']').fadeOut('fast', function() {
unloadYouTubePlayer('the_player'+id);
$('.show_player['+idType+'='+id+']').fadeIn('fast');
});
});
});
});
</script>
<div class="hidden_player hidden1" data-video-id="0" style="display:none">
<iframe id="the_player0" width="640" height="360" frameborder="0" src="http://www.youtube.com/embed/2ktsHhz_n2A" type="text/html"></iframe>
</div>
<p><a href="#" class="show_player" data-video-id="0">Show video 0 and start playing automatically</a></p>
<p><a href="#" class="stop_player" data-video-id="0" style="display:none">Stop video 0 from playing</a></p>
<br/><br/>
<div class="hidden_player hidden2" data-video-id="1" style="display:none">
<iframe id="the_player1" width="640" height="360" frameborder="0" src="http://www.youtube.com/embed/2ktsHhz_n2A" type="text/html"></iframe>
</div>
<p><a href="#" class="show_player" data-video-id="1">Show video 1 and start playing automatically</a></p>
<p><a href="#" class="stop_player" data-video-id="1" style="display:none">Stop video 1 from playing</a></p>
</body>
</html>
I’ve just tested this code on my website and found the stop button doesn’t work.
I tried to find and tested many code but don’t found the any work one. Finally I use the copy and remove method to replace this.
$('.stop_player').click(function() {
var idType = 'data-video-id';
var id = $(this).attr(idType);
$(this).fadeOut('fast', function() {
$('.hidden_player['+idType+'='+id+']').fadeOut('fast', function() {
// unloadYouTubePlayer('the_player'+id);
var temp = $('.hidden'+id ).html();
$('#the_player'+id).remove();
$('.hidden'+id).html(temp);
$('.show_player['+idType+'='+id+']').fadeIn('fast');
});
});
});
reference:
http://jsfiddle.net/iwasrobbed/9Dj8c/3/
http://stackoverflow.com/questions/7522997/using-jquery-to-play-stop-youtube-multiple-iframe-players
http://stackoverflow.com/questions/6671232/youtube-api-stop-video
The shortcodes also accept a variety of configuration parameters that you may use to customize the output. All are completely optional.
autolinks (true/false) — Makes all URLs in your posted code clickable. Defaults to true.collapse (true/false) — If true, the code box will be collapsed when the page loads, requiring the visitor to click to expand it. Good for large code posts. Defaults to false.firstline (number) — Use this to change what number the line numbering starts at. It defaults to 1.gutter (true/false) — If false, the line numbering on the left side will be hidden. Defaults to true.highlight (comma-seperated list of numbers) — You can list the line numbers you want to be highlighted. For example “4,7,19″.htmlscript (true/false) — If true, any HTML/XML in your code will be highlighted. This is useful when you are mixing code into HTML, such as PHP inside of HTML. Defaults to false and will only work with certain code languages.light (true/false) — If true, the gutter (line numbering) and toolbar (see below) will be hidden. This is helpful when posting only one or two lines of code. Defaults to false.padlinenumbers (true/false/integer) — Allows you to control the line number padding. true will result in automatic padding, false will result in no padding, and entering a number will force a specific amount of padding.toolbar (true/false) — If false, the toolbar containing the helpful buttons that appears when you hover over the code will not be shown. Defaults to true.wraplines (true/false) — If false, line wrapping will be disabled. This will cause a horizontal scrollbar to appear for long lines of code.[css toolbar=”true” ruler=”true” title=”true” tab-size=”4″]
/* Mixin */
@base: #663333;
@lighter1: lighten(spin(@base, 5), 10%);
@lighter2: lighten(spin(@base, 10), 20%);
@darker1: darken(spin(@base, -5), 10%);
@darker2: darken(spin(@base, -10), 20%);
/* Implementation */
.one {color: @base;}
.two {color: @lighter1;}
.three {color: @lighter2;}
.four {color: @darker1;}
.five {color: @darker2;}
[/css]
/* Mixin */
@base: #663333;
@lighter1: lighten(spin(@base, 5), 10%);
@lighter2: lighten(spin(@base, 10), 20%);
@darker1: darken(spin(@base, -5), 10%);
@darker2: darken(spin(@base, -10), 20%);
/* Implementation */
.one {color: @base;}
.two {color: @lighter1;}
.three {color: @lighter2;}
.four {color: @darker1;}
.five {color: @darker2;}
| Brush name | Brush aliases |
|---|---|
| ActionScript3 | as3, actionscript3 |
| Bash/shell | bash, shell |
| ColdFusion | cf, coldfusion |
| C# | c-sharp, csharp |
| C++ | cpp, c |
| CSS | css |
| Delphi | delphi, pas, pascal |
| Diff | diff, patch |
| Erlang | erl, erlang |
| Groovy | groovy |
| JavaScript | js, jscript, javascript |
| Java | java |
| JavaFX | jfx, javafx |
| Perl | perl, pl |
| PHP | php |
| Plain Text | plain, text |
| PowerShell | ps, powershell |
| Python | py, python |
| Ruby | rails, ror, ruby |
| Scala | scala |
| SQL | sql |
| Visual Basic | vb, vbnet |
| XML | xml, xhtml, xslt, html, xhtml |
<nav>
<h1>This menu turns into a <select> when window is less than 500px to conserve space.</h1>
<ul>
<li><a href="#" class="active">Home</a></li>
<li><a href="#books">Books</a></li>
<li><a href="#blog">Blog</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#support">Support</a></li>
</ul>
</nav>
* {
margin: 0;
padding: 0;
}
h1 {
font: 300 21px "HelveticaNeue-Light", "Helvetica Neue Light", "Helvetica Neue", Helvetica, Arial, "Lucida Grande", sans-serif;
width: 500px;
margin: 0 auto 15px;
}
nav {
display: block;
width: 960px;
margin: 100px auto;
text-align: center;
}
nav ul {
list-style: none;
}
nav li {
display: inline-block;
}
nav a {
display: inline-block;
background: #333;
color: white;
padding: 5px 15px;
border: 1px solid white;
text-decoration: none;
}
nav a:hover {
border: 1px solid red;
background: red;
}
nav a:active {
background: blue;
}
nav select {
display: none;
}
@media (max-width: 500px) {
nav ul { display: none; }
nav select { display: inline-block; }
}
// DOM ready
$(function() {
// Create the dropdown base
$("<select />").appendTo("nav");
// Create default option "Go to..."
$("<option />", {
"selected": "selected",
"value" : "",
"text" : "Go to..."
}).appendTo("nav select");
// Populate dropdown with menu items
$("nav a").each(function() {
var el = $(this);
$("<option />", {
"value" : el.attr("href"),
"text" : el.text()
}).appendTo("nav select");
});
// To make dropdown actually work
// To make more unobtrusive: http://css-tricks.com/4064-unobtrusive-page-changer/
$("nav select").change(function() {
window.location = $(this).find("option:selected").val();
});
});
see result:
http://jsfiddle.net/fusionpeach/7f9M6/embedded/result/
The code how to.
<div id="categoryList">
<a class="category">Down <span class="arr1"></span></a>
<a class="category">Up <span class="arr2"></span></a>
<a class="category">Left <span class="arr3"></span></a>
<a class="category">Right <span class="arr4"></span></a>
</div>
and this is the css
#categoryList a {
text-indent: 20px;
display: block;
position: relative;
}
#categoryList .arr1 {
display: inline-block;
width: 0;
height: 0;
text-indent: -99999px;
vertical-align: top;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-top: 4px solid #000000;
opacity: 0.8;
filter: alpha(opacity=80);
content: "\2193";
float: left;
position: relative;
top: 7px;
}
#categoryList .arr2 {
display: inline-block;
width: 0;
height: 0;
text-indent: -99999px;
vertical-align: top;
border-left: 4px solid transparent;
border-right: 4px solid transparent;
border-bottom: 4px solid #000000;
opacity: 0.8;
filter: alpha(opacity=80);
content: "\2193";
float: left;
position: relative;
top: 7px;
}
#categoryList .arr3 {
display: inline-block;
width: 0;
height: 0;
text-indent: -99999px;
vertical-align: top;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
border-right: 4px solid #000000;
opacity: 0.8;
filter: alpha(opacity=80);
content: "\2193";
float: left;
position: relative;
top: 7px;
}
#categoryList .arr4 {
display: inline-block;
width: 0;
height: 0;
text-indent: -99999px;
vertical-align: top;
border-top: 4px solid transparent;
border-bottom: 4px solid transparent;
border-left: 4px solid #000000;
opacity: 0.8;
filter: alpha(opacity=80);
content: "\2193";
float: left;
position: relative;
top: 7px;
}
In css if you make a div/input width 100% and apply the padding 30px to its.
So the width will become 100%+30px not absolute 100% as you want.
This solution by fix by add the css border-box
input {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
or easy way by
width: 90%;
padding: 5%; /* including padding-left: 5% and padding-right 5% */