Support for Unicode By browser
This is primarily a font problem, but if the fonts listed in your CSS do not cover some character, then different browsers will use fallback fonts differently. The cure is to try and find a list of fonts that probably covers all the characters you use. The difficulty of doing this greatly depends on the characters you use. Using recently introduced characters in buttons is mostly pointless, because images work more reliably. Using characters in text proper is a different issue. See my Guide to using special characters in HTML for details.
Create webfont with Unicode Supplementary Multilingual Plane symbols
You can try to adapt the dejavu build script used to create dejavu-lgc. That, or edit it in fontforge directly.
Why does chrome render different unicode characters ”你”(U+2F804)”和你”(U+4F60) are the same characters
A note: unicode code point and font glyphs are not directly related. The actual glyph depends on context, ligature, combining characters, language, and possibly other factors (see Unicode standard).
Unicode defines that U+2F804 is decomposable to U+4F60. Often Unicode texts are normalized by software. Either by decomposing them (so often splitting characters and accents e.g. for Latin languages), or by composing them. Such algorithms are described in Unicode. So in that case, it is considered U+4F60 semantically fully equal to U+2F804 (and preferred form). It is not frequent to see decomposition which contain the same number of code points (but also not unseen). And it is also not seldom to have decomposition in one direction, and no relation on the other direction.
This character is in CJK Compatibility Ideographs Supplement, so the important part is compatibility, and this is confirmed also by wikipedia article (https://en.wikipedia.org/wiki/CJK_Compatibility_Ideographs_Supplement).
Compatibility codepoint were introduced to simplify introduction of Unicode, by providing a lossless roundtrip conversion of other encoding. [In such manner, one could implement Unicode on different layers, without problems and fully transparent, and without requiring to change other layers (or worse: to change all stack in one step).
Special character not displaying as expected
1 - Replace your
<meta charset="utf-8">
with
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
2 - Check if your HTML Editor's encoding is in UTF8. Usually this option is found on the tabs on the top of the program, like in Notepad++.
3 - Check if your browser is compatible with your font, if you're somehow importing a font. Or try and add a css to set your fonts to a default/generally accepted one like
body
{
font-family: "Times New Roman", Times, serif;
}
Hope it helps :)
WebKit bug? Hover state does not get applied to content inserted via CSS
This works for me http://jsfiddle.net/X4gjL/5/
a:before {
content: "Hover Over Me";
}
a.foo:hover {
color: red;
}
a.foo
{
display:block;
}
-------------EDIT---------
Thanks to BoltClock for pointing this out, making it inline-block doesn't make the width 100% by default like block. http://jsfiddle.net/X4gjL/6/
a:before {
content: "Hover Over Me";
}
a.foo:hover {
color: red;
}
a.foo
{
display:inline-block;
}
Related Topics
How to Make Twitter Bootstrap Modal Full Screen
Faster Way to Develop and Test Print Stylesheets (Avoid Print Preview Every Time)
Make Font Awesome Icons in a Circle
Which Are the Most Important Media Queries to Use in Creating Mobile Responsive Design
Symfony2 - Assetic - Load Images in CSS
How to Remove the Gloss on a Select Element in Safari on MAC
Display Image at 50% of Its "Native" Size
Css: Background Image on Background Color
Make Column Fixed Position in Bootstrap
Background-Size in Shorthand Background Property (Css3)
Why Use an Attribute Selector to Match Classes
What Does the Double Colon (::) Mean in CSS
CSS Text Align Justify Big Spaces
How to Style Menu Button and Menu Items
How to Select an Element Only When Inside Another Element
How Do Browsers Deal with Non-Integer Values for Height and Width
Nth-Child Doesn't Respond to Class Selector
How Can a Variable-Height Sticky Footer Be Defined in Pure CSS