Click here to Skip to main content
15,894,405 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello ,

Does any one know solution for ::before and ::after on IE7 ?
I know that it is not supported on IE7 but i need a solution
I try js like https://code.google.com/p/ie7-js/[^] but still same problem

i have this code

HTML
<li id="wp-admin-bar-comments"> 
<a class="ab-item" href="edit-comments.php" title="9 comments awaiting moderation"> 
<span class="ab-icon"> 
::before 
</span> 
<span id="ab-awaiting-mod" class="ab-label awaiting-mod pending-count count-9">9</span> 
</a>	
</li> 


And below is code for ::before

CSS
#wpadminbar #wp-admin-bar-comments .ab-icon:before 
{ 
Content : '\f101'; 
top : 3px; 
}


the content '\f101' is refer to an icon , it is appeared on all browser except IE7
any idea ?
Posted
Comments
TheRealSteveJudge 11-Feb-15 5:05am    
Why do you ride a dead horse?
IE7 is outdated.
You should use a modern browser e.g IE11, Chrome etc.
Can you create a fiddle at jsfiddle/?

1 solution

To get unsupported features work on older browsers you may (and may only) use what they call polyfill...
The most robust library of such polyfills for HTML and CSS features is probably Modernizr[^]...
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900